#include<stdio.h>
#include<stdlib.h>
int main(){
  int unused __attribute__((unused));
  int i, j, cnt = 0;
  int N, K, *d, **A, *sunuke;
  unused = scanf("%d %d", &N, &K);
  d = malloc(sizeof(int)*N);
  A = malloc(sizeof(int *)*K);
  sunuke = malloc(sizeof(int)*N);
  for(i=0; i<N; i++) sunuke[i] = 0;

  for(i=0; i<K; i++){
    unused = scanf("%d", &d[i]);
    A[i] = malloc(sizeof(char)*N);
    for(j=0; j<d[i]; j++){
      unused = scanf("%d", &A[i][j]);
      sunuke[A[i][j]-1] = 1;
    }
  }
  for(i=0; i<N; i++){
    if(sunuke[i]==0) cnt++;
  }
  printf("%d", cnt);
  return 0;
}
