function Main(input){
  // 文字列を格納
  let ary = input.trim().split('\n');
  let tmp = ary[0].split(' ');
  ary.shift();
  let n = parseInt(tmp[0]);
  let k = parseInt(tmp[1]);
  let set = new Set();

  for (let i = 1; i <= n; i+=2){
    tmp = ary[i].split(' ').map(x => parseInt(x));
    tmp.forEach(function(v){
      set.add(v);;
    });
  }

  console.log(n - set.size);
};

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