#include <bits/stdc++.h>
using namespace std;
int lst[200100], cur[200100];
int n, t;
int main() {
  cin >> n;
  lst[1] = 0;
  cur[0] = 1;
  int res = 1;
  for (int i = 1; i <= n; i++) {
    cin >> t;
    if (lst[cur[t]] == t) {
      lst[cur[t]] = i;
      cur[i] = cur[t];
    } else {
      res++;
      cur[i] = res;
      lst[res] = i;
    }
  }
  cout << res << endl;
  return 0;
}
