import java.io.PrintWriter

fun main() {
    val pw = PrintWriter(System.out)

    val (n, k) = readInputLine().split(" ").map { it.toInt() }

    val cnt = IntArray(n)

    repeat(k) {
        readInputLine()
        readInputLine().split(" ").map { cnt[it.toInt() - 1]++ }
    }

    pw.println(cnt.count { it == 0 })

    pw.flush()
}

fun readInputLine(): String {
    return readLine()!!
}
