#include<stdio.h>
int main(void){
    int n,k,i=0;
    scanf("%d %d",&n,&k);
    int vec[n];
    while(i<k){
        int d;
        int x;
        scanf("%d",&d);
        int r=0;
        while(r<d){
           scanf("%d",&x);
           vec[x-1] =1;
           r++;
        }
        i++;
    }
    int ans= 0;
    i=0;
    while(i<k){
        if(vec[i] == 0) ans++;
        i++;
    }
    printf("%d\n",ans);
}