#include <stdio.h>
int main(){
    int N, K, d[101], A[101][101], sunuke[101] = {0}, ans = 0;

    scanf("%d %d\n", &N, &K);
    for( int i = 0; i < K; i++ ){
        scanf("%d\n", &d[i]);
        for( int j = 0; j < d[i]; j++ ){
            scanf("%d ", &A[i][j]);
            for( int k = 0; k < N; k++ ){
                if( A[i][j] == k+1  ){
                    sunuke[k]++;
                }
            }
        }
    }
    for( int l = 0; l < N; l++ ){
        if( sunuke[l] == 0 ){
            ans++;
        }
    }
    printf("%d\n", ans);
    return 0;
}