import Foundation

func readInt() -> [Int]{
    return readLine()!.split(separator:" ").map{Int($0)!}
}

let nm = readInt()
var num : Set<Int> = []
for i in 1...nm[1]{
  let c = readInt()
  for a in c{
    num.insert(a)
  }
}
print(nm[0] - num.count)