local N, K = io.read("*n", "*n")
local tricked = {}
for i = 1, N do
	tricked[i] = true
end

for i = 1, K do
	local d = io.read("*n")
	for j = 1, d do
		tricked[io.read("*n")] = false
	end
end

local count = 0
for i = 1, N do
	if tricked[i] then
		count = count + 1
	end
end

print(count)