// ABC165 - B
function main(input) {
  var inputs = input.split('\n');

  var nums = inputs[0].split(' ');
  var n = parseInt(nums[0], 10);
  var k = parseInt(nums[1], 10);

  var holders = [];

  for (var i = 2; i < inputs.length; i += 2) {
    var nums = inputs[i].split(' ').map((n) => parseInt(n, 10));

    nums.forEach((item, i) => {
      if (holders.indexOf(item) == -1) holders.push(item);
    });
  }

  console.log(n - holders.length);
}

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