#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vl = vector<long>;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  set<int> s;
  cin >> t;
  s.insert(0);
  for (int i = 1; i <= t; ++i) {
    int a;
    cin >> a;
    if (s.count(a) == 1) {
      s.erase(a);
    }
    s.insert(i);
  }
  cout << s.size() << endl;
  return 0;
}
