#include <bits/stdc++.h>
using namespace std;
int t[200500];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> t[i];
  }
  int res = 0;
  for (int i = n; i >= 1; i--) {
    if (t[i] == -1) {
      continue;
    }
    ++res;
    int j = i;
    while (j > 0) {
      int u = t[j];
      t[j] = -1;
      j = u;
    }
  }
  cout << res;
  return 0;
}
