function Main(input){
    input=input.split("\n");  //ここまで必須
    var gyo=input.length;
    inputA=input[0].split(" ");
    var retu=new Array(inputA[0]);
    for (i=1;i<gyo;i=i+2){
        var inputB=input[i+1].split(" ");
        for (j=0;j<inputB.length;j++){
            retu[inputB[j]-1]=1
        }
    }
    var count=0;
    for (k=0;k<inputA[0];k++){
        if (retu[k]!=1){
            count++
        }
    }
    console.log(count);}

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