"use strict";

const main = (input) => {
    const spi = input.split('\n');
    const [n, k] = spi[0].split(' ').map(e => Number(e));

    const snukes = new Array(n);
    for (let i = 0; i < n; i++) snukes[i] = 0;

    let row = 1;
    for (let i = 0; i < k; i++) {
        const d = Number(spi[row]);
        row++;
        const a = spi[row].split(' ').map(e => Number(e));
        row++;
        for (let j = 0; j < d; j++) {
            snukes[a[j] - 1]++;
        }
    }

    let ans = 0;
    for (let i = 0; i < n; i++) {
        if (snukes[i] === 0) ans++;
    }

    console.log(ans);
};

main(require("fs").readFileSync("/dev/stdin", "utf8"));
