import scala.io.StdIn._
object Main {
  def main(args:Array[String]) {
    val NK = readLine().split(' ').map(_.toInt)

    var ans = Array.fill(NK(0))(0)
    for(i <- 0 until NK(1)) {
      var d = readLine().toInt
      var A = readLine().split(' ').map(_.toInt)
      for(j <- A) ans(j - 1) += 1
    }
    var count = 0
    for(i <- 0 until NK(0)) if(ans(i) == 0) count += 1
    println(count)
  }
}
