function Main(input) {
    var firstLine = input[0].split(/\s/);
    var N = parseInt(firstLine[0], 10);
    var K = parseInt(firstLine[1], 10);
    var dA = input.slice(1);
    var split;

    var sunuke = new Array;
    sunuke.fill(false);

    for (var i = 0; i < 2 * K; i++) {
        if (i % 2 !== 0) {
            split = dA[i].split(/\s/);
            for (var j = 0; j < split.length; j++) {
                sunuke[split[j] - 1] = true;
            }
        }
    }

    var result = 0;
    for (var i = 0; i < N; i++) {
        if (!sunuke[i]) {
            result++;
        }
    }

    console.log(result);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n/));