N, K = list(map(int, input().split()))

sunuke = [0 for i in range(N)]

for i in range(K):
  d = int(input())
  As = list(map(int, input().split()))
  for A in As:
    sunuke[A-1] += 1

treat = 0

for i in range(N):
  if sunuke[i] == 0:
    treat += 1
    
print(treat)
