const main = (input) => {
  input = input.trim().split('\n')
  const [n, k] = input[0].split(' ').map(Number)
  const [, ...arr] = input

  const his = {}

  while (arr.length) {
    arr.shift()
    const t = arr.shift()
    t.split(' ').forEach(v => his[v] = 1)
  }

  let count = 0
  for (let i=1; i<=n; i++) if (~~his[i] === 0) count++

  return console.log(count)
}

process.env.MYTEST
  ? (process.env.MYTEST === 'test' ? test() : main(require('fs').readFileSync('dev/stdin', 'utf8')))
  : main(require('fs').readFileSync('/dev/stdin', 'utf8'))