#include <stdio.h>

int main(void){
    int N, K;
    scanf("%d%d", &N, &K);
    int cnt[K];
    for (int i = 0; i < K;i++){
        cnt[i] = 0;
    }


    for (int i = 0; i < K; i++)
    {
        int d;
        scanf("%d", &d);
        int A[d];
        for (int k = 0; k < d;k++){
            scanf("%d", &A[k]);
        }
        for (int j = 0; j < d; j++){
            int a = A[j]-1;
            cnt[a]++;
        }
    }

        int count = 0;
    for (int i = 0; i < K;i++){
        if (cnt[i] == 0){
            count++;
        }
    }
    printf("%d", count);
    return 0;
}