#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    int N, K;
    scanf("%d %d", &N, &K);
    int A[N];
    for (int i = 0; i < N; i++)
        A[i] = 0;
    for (int i = 0; i < K; i++)
    {
        int d;
        scanf("%d", &d);
        for (int j = 0; j < d; j++)
        {
            int x;
            scanf("%d", &x);
            A[x - 1] += 1;
        }
    }
    int ans = 0;
    for (int i = 0; i < N; i++)
    {
        if (A[i] == 0)
            ans++;
    }

    cout << ans << endl;
    return 0;
}