#include<stdio.h>

int main(void){
    register int i,j;
    int n,k;
    scanf("%d%d",&n,&k);
    int sn[n];
    for(i = 0;i < n;i++)sn[i] = 0;
    for(i = 0;i < k;i++){
        int d;
        int t;
        scanf("%d",&d);
        for(j = 0;j < d;j++){
            scanf("%d",&t);
            sn[t-1]++;
        }
    }
    int cnt = 0;
    for(i = 0;i < n;i++)if(!sn[i])cnt++;
    printf("%d",cnt);
}