const Main = (input) => {
    ans=''
    const lines = input.split('\r')
    line0=lines[0].trim().split(" ")
    N=line0[0]
    K=lines[1]
    a=new Array(N)
    for (i=2;i<lines.length;i=i+2){
        line=lines[i].trim().split(" ")
        for(j=0;j<line.length;j++){
            a[line[j]]=true
        }
    }
    ans=0
    for( i=0 ;i<a.length;i++){
        if(!a[i]){
            ans++
        }
    }
    return ans
}

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