#include <stdio.h>
#include <stdlib.h>


void calc(int **a,int *d,int *nusuke,int k,int n);


void calc(int **a,int *d,int *nusuke,int k,int n){
  int i,j;
  int count=0;
  
  for(i=0; i<k; i++){
    scanf("%d",&d[i]);
    a[i] = (int*)calloc(d[i],sizeof(int));
    for(j=0; j<d[i]; j++){
      scanf("%d",&a[i][j]);
    }
  }
  
  for(i=0; i<k;i++){
    for(j=0; j<d[i]; j++){
      nusuke[a[i][j]-1] += 1;
    }
  }
  
  for(i=0; i<n; i++){
    if (nusuke[i] == 0) count++;
  }
  printf("%d\n",count);
  return ;
}


int main (void){
  int n,k;
  int **a;
  int *d;

  int *nusuke;

  if (scanf("%d %d",&n,&k) == 2){
    a = (int**) calloc(k,sizeof(int*));
    d = (int*) calloc(k,sizeof(int));
    nusuke = (int*) calloc(n,sizeof(int));

    calc(a,d,nusuke,k,n);
   
    free(nusuke);
    free(a);
    free(d);
  }
  


  return 0;
  
}
