// Try Codeforces
// author: Leonardone @ NEETSDKASU
import std.stdio      : readln, writeln;
import std.array      : split;
import std.string     : chomp;
import std.conv       : to;

void main()
{
    auto n = readln.chomp.to!int;
    auto ts = readln.chomp.split.to!(int[]);
    auto ord = new int[n + 1];
    auto tim = new int[n + 1];
    auto ans = n;
    ord[0] = 1;
    auto c = 1;
    foreach (i ; 1 .. n+1)
    {
        auto ti = ts[i-1];
        auto nm = ord[ti];
        if (ti == tim[nm])
        {
            tim[nm] = i;
            ord[i] = nm;
        }
        else
        {
            c++;
            tim[c] = i;
            ord[i] = c;
        }
    }
    ans = c;
    writeln(ans);
}
