#include <bits/stdc++.h>
using namespace std;
long long a[200005];
int main() {
  ios::sync_with_stdio(false);
  long long n, i, j, k, t;
  cin >> n;
  map<long long, long long> m;
  for (i = 0; i < n; i++) cin >> a[i];
  long long c = 1;
  m[0] = 1;
  for (i = 0; i < n; i++) {
    if (m.count(a[i])) {
      m[i + 1] = m[a[i]];
      m.erase(m.find(a[i]));
    } else {
      c++;
      m[i + 1] = c;
    }
  }
  cout << c << endl;
  return 0;
}
