// Trick or Treat

func main() {
    let nk = readLine()!.split(separator: " ").map{Int($0)!}
    let n = nk[0]
    let k = nk[1]

    var counts = Array(repeating: 0, count: n + 1)
    for _ in 1...k {
        readLine()!
        readLine()!.split(separator: " ").forEach { s in
            let i = Int(s)!
            counts[i] += 1
        }
    }
    let result = (1...n).filter{counts[$0] == 0}.count
    print(result)
}

main()