let NK = readLine()!.components(separatedBy: " ")
let N = Int(NK[0])!
let K = Int(NK[1])!

var result: [Bool] = [Bool](repeating: false, count: N)
var d = readLine()

while d != nil {
   let line = readLine()!.components(separatedBy: " ").map{ Int($0)! }
   for peopleNum in line {
      result[peopleNum - 1] = true
   }
   d = readLine()
}

print(result.filter{ $0 == false}.count)