#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 b[n], ans=0;

  for (int i = 0; i < n; i++)
    b[i] = 0;

  for (int i = 0; i < k; i++) {
    for (int j = 0; j < d[i]; j++) {
      b[(a[i][j]-1)]++;
    }
  }

  for (int i = 0; i < n; i++){
    if (b[i] == 0)
      ans++;
  }

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

  return 0;
}
