#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> room(n + 1, -1);
  room[0] = 1;
  long long int res = 1;
  for (long long int i = 1; i <= n; i++) {
    long long int t;
    cin >> t;
    if (room[t] != -1) {
      room[i] = 4;
      room[t] = -1;
    } else {
      res++;
      room[i] = res;
    }
  }
  cout << res << "\n";
}
