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

int main(void){
  int N,K;
  scanf("%d %d",&N,&K);
  int i,j;
  
  int **matrix,*d;
  matrix = malloc(sizeof(int *)*(K+1));
  d = malloc(sizeof(int)*(K+1));
  for(i=1; i<=K; i++){
    scanf("%d",&d[i]);
    matrix[i] =malloc(sizeof(int)*(N+1));
    for(j=1; j<=d[i]; j++)
      scanf("%d",&matrix[i][j]);
  }
  
  int *p;
  p = calloc(sizeof(int),N+1);
  for(i=1; i<=K; i++)
    for(j=1; j<=d[i]; j++){
      p[matrix[i][j]]++;  
    }
  free(p);
  free(d);
  for(i=0; i<K+1; i++)
    free(matrix[i]);
  free(matrix);
  int ans;
  for(i=1; i<=N; i++)
    if(p[i]==0)
      ans++;
  printf("%d",ans);
  
  return 0;
}