function main(input) {
  const args = input.split('\n')
  const n = Number(args[0].split(' ')[0])
  const k = Number(args[0].split(' ')[1])
  const data = args.slice(1, args.length)
  let sunuke = Array(n).fill(0)
  let d = []
  for (let i = 0; i > k * 2; i += 2) {
    d = data[i + 1].split(' ').map(v => Number(v))
    d.forEach(v => {
      sunuke[v - 1] += 1
    })
    d = []
  }
  console.log(sunuke.filter(v => v === 0).length)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))