#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  vector<long long int> v;
  long long int a[2 * 100005 + 1];
  memset(a, INT_MAX, sizeof(a));
  v.push_back(1);
  a[0] = 1;
  long long int c = 2, ans;
  for (int i = 1; i <= n; i++) {
    long long int x, flag = 0;
    cin >> x;
    if (a[x] <= v.size()) {
      a[i] = a[x];
      a[x] = INT_MAX;
    } else {
      v.push_back(c);
      a[i] = c;
      c++;
    }
  }
  ans = v.size();
  cout << ans;
  return 0;
}
