#include <stdio.h>

int main(void){

  int n,k;
  scanf("%d %d", &n, &k);
  int d[k], a[k][n];
  for (int i = 0; i < k; i++) {
    scanf("%d", &d[i]);
    for (int j = 0; j < d[i]; j++) {
      scanf("%d", &a[i][j]);
    }
  }
  int check[n];
  for (int i = 0; i < n; i++) {
    check[i] = 0;
  }
  for (int i = 0; i < k; i++) {
    for (int j = 0; j < d[i]; j++) {
      check[a[i][j]-1]++;
    }
  }
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (check[i] == 0) {
      count++;
    }
  }
  printf("%d\n", count);

  return 0;
}