#include <stdio.h>

int main() {
	int n, k, d[100], a[100][100], dd[100] = {10000},ans=0;
	scanf("%d%d", &n, &k);
	for (int i = 0; i < n; i++) dd[i] = 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]);
			a[i][j]--;
			dd[a[i][j]]++;
		}
	}
	for (int i = 0; i < n; i++)if(dd[i]==0)ans++;
	printf("%d", ans);
	return 0;
}