#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  vector<long long> v(n + 1, 0);
  for (long long i = 1; i <= n; i++) cin >> v[i];
  long long cnt = 0;
  for (long long i = n; i >= 1; i--) {
    if (v[i] == -1) continue;
    long long a = i;
    do {
      long long b = v[a];
      v[a] = -1;
      a = b;
    } while (v[a] > 0);
    v[a] = -1;
    cnt++;
  }
  cout << cnt;
  return 0;
}
