import std;

void main() {
    int n, k; scan(n, k);
    auto s = new int[n];
    foreach (_; 0..k) {
        read;
        foreach (e; readints) s[e-1]++;
    }
    auto ans = s.count!"a == 0";
    writeln(ans);
}

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T=string)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readints = reads!int;
