int main(void)
{
  int n, k;
  int cnt = 0;
  int tmp;
  int d[101];
  int a[101][101];

  scanf("%d %d", &n, &k);
  for (int i = 1; i <= k; i++) {
    scanf("%d", &d[i]);
    for (int j = 1; j <= d[i]; j++) scanf("%d", &a[i][j]);
  }

  for (int i = 1; i <= n; i++){
    tmp = 0;
    for (int j = 1; j <= k; j++){
      for (int l = 1; l <= d[k]; l++){
        if (a[j][l] == i) tmp++;
      }
    }
    if (tmp == 0) cnt++;
  }

  printf("%d", cnt);

  return 0;
}