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


int main(void) {
  int sunuke, sweet_k, i, j;
  int nothave = 0;

  if (scanf("%d %d\n", &sunuke, &sweet_k) == 0) {
    return -1;
  }

  int have[sunuke];

  for (i = 0; i < sunuke; i++) {
    have[i] = 0;
  }

  char sweet_d[sunuke];
  char sunuke_a[3*sunuke];

  int sweet_di = 0;

  for (i = 0; i < sweet_k; i++) {
    if (fgets(sweet_d, sunuke, stdin) == NULL) {
      return -1;
    }

    sweet_di = atoi(sweet_d);
    int sunuke_ai[sweet_di];

    if (fgets(sunuke_a, 3*sunuke, stdin) == NULL) {
      return -1;
    }

    sunuke_ai[0] = atoi(strtok(sunuke_a, " "));

    for (j = 1; j < sweet_di; j++) {
      sunuke_ai[j] = atoi(strtok(NULL, " "));
    }

    for (j = 0; j < sweet_di; j++) {
      if(have[sunuke_ai[j]-1] == 0) {
        have[sunuke_ai[j]-1] = 1;
      }
    }
  }

  for (i = 0; i < sunuke; i++) {
    if(have[i] == 0) {
      nothave++;
    }
  }

  printf("%d\n", nothave);

  return 0;
}
