local n, k = io.read("*n", "*n")
local t = {}
for i = 1, n do t[i] = false end
for i = 1, k do
  local d = io.read("*n")
  for j = 1, d do
    x = io.read("*n")
    t[x] = true
  end
end
c = 0
for i = 1, n do
  if not t[i] then c = c + 1 end
end
print(c)
