#include <stdio.h>
 
void initialize(int len, int array[len])
{
  int i;
  i = 0;
  while(i < len)
  {
    array[i] = 0;
    i++;
  }
}
 
int main()
{
  int n,k;
  scanf("%d%d",&n,&k);
  int d[k];
  int a[k][100];
  int b[k];
  int i,j;
  i = 0;
  initialize(k, b);
  i = 0;
  while (i < k)
  {
    scanf("%d",&d[i]);
    j = 0;
    while (j < d[i])
    {
      scanf("%d",&a[i][j]);
      b[a[i][j] - 1] += 1;
      j++;
    }
    i++;
  }
  
  i = 0;
  int sum;
  sum = 0;
  while (i < k)
  {
    if(b[i] == 0)
    {
      //printf("i:%d b[i]:%d\n",i,b[i]);
      sum += 1;
    }
    i++;
  }
  printf("%d",sum);
}