#include <stdio.h>
int main(void)
{
 int n, k;
 scanf("%d %d", &n, &k);
 int d[200];
 int flag[200] = {0};
 int a[200][200];
 int count = 0;

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

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

 for (int i = 0; i < k; i++)
 {
		if (flag[i] == 0)
		{
			count++;
		}
 }


	printf("%d\n",count);
 return 0;
}