object Main extends App {
  val strAry = io.StdIn.readLine().split(' ')
  val N = strAry(0).toInt
  val K = strAry(1).toInt
  val ar = new Array[Int](N)
  val i = 0
  for (i <- 1 to K){
    val d = io.StdIn.readLine().toInt
    val inStr = io.StdIn.readLine().split(' ')
    for(q <- inStr){
        ar(q.toInt-1) += 1
    }
  }
  var count = 0
  for (i <- 0 to N-1){
    if(ar(i) == 0) {
        count += 1
    }
  }
  println(count)
}