import Foundation

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

func main(){
    let nk = readInts()
    var sunukes = [Int](repeating: 0, count: nk[0])
    
    for _ in 1...nk[1]{
        let _ = Int(readLine()!)!
        let a = readInts()
        for i in a{
            sunukes[i-1] += 1
        }
    }
    print(sunukes.filter {$0 == 0}.count)
}

main()
