#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int N;
  cin >> N;
  bool data[1000000];
  memset(data, 0, sizeof(data));
  data[0] = true;
  int solution = 1;
  for (int i = 1; i <= N; i++) {
    int ti;
    cin >> ti;
    if (!data[ti]) {
      solution++;
      data[i] = true;
    } else {
      data[ti] = false;
      data[i] = true;
    }
  }
  cout << solution << endl;
  return 0;
}
