function Main(input) {
    const _input = input.split("\n")
    const NK = input[0].split(" ")
    const N = NK[0]
    // const K = NK[1]
    
    let ans = new Array(Number(N)).fill(0)
    for (let k = 2; k < _input.length; k += 2) {
        const hito = _input[k].split(" ");
        for (let h = 0; h < hito.length; h++) {
            ans[Number(hito[h])-1]++
        }
    }
    //     hito.forEach(h => {
    //         ans[Number(h)-1]++
    //     })
    // }
    console.log(ans.filter(e => e === 0).length)

}
// Main()
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
