#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<int> t;
  map<int, int> ind;
  t.push_back(0);
  ind[0] = 0;
  for (int i = 0; i < n; ++i) {
    if (ind.count(a[i])) {
      t[ind[a[i]]] = i + 1;
      ind[i + 1] = ind[a[i]];
      ind.erase(a[i]);
    } else {
      ind[i + 1] = t.size();
      t.push_back(i + 1);
    }
  }
  cout << t.size() << endl;
}
