#include <bits/stdc++.h>
using namespace std;
const int INF = 2e9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<int> arr(n), kek(n);
  vector<bool> used(n);
  kek[0] = 1;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  for (int i = 1; i < n; ++i) {
    kek[i] = kek[i - 1];
    if (arr[i] == 0 || arr[i] <= (arr[arr[i] - 1])) {
      kek[i]++;
      continue;
    }
    if (!used[arr[i] - 1]) {
      used[arr[i] - 1] = 1;
    } else {
      kek[i]++;
    }
  }
  cout << kek[n - 1];
  return 0;
}
