function main(arg) {
    let tmp = arg.trim().split("\n")[0]
    let N = Number(tmp.split(" ")[0])
    let K = Number(tmp.split(" ")[1])
    tmp = arg.trim().split("\n")
    tmp.shift()
    let data = []
    let snk = new Array(N).fill(0)
    for (let i = 0; i < tmp.length;i++) {
        if (i % 2 === 0) {
            continue
        }
        let row = tmp[i].split(" ").map(Number)
        for (let j = 0; j < row.length; j++) {
            let idx = row[j] - 1
            snk[idx] += 1
        }
    }
    let counter = 0
    // console.log(JSON.stringify(snk))
    for (let i = 0; i < snk.length; i++) {
        if (snk[i] === 0) {
            counter++
        }
    }
    console.log(counter)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));