#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> log(n + 1);
  for (int i = 1; i <= n; i++) {
    cin >> log[i];
  }
  int answer = 1;
  vector<int> sheraj(n + 1, -1);
  sheraj[0] = 1;
  int count_rooms = 1;
  for (int i = 1; i <= n; i++) {
    if (sheraj[log[i]] == -1) {
      sheraj[i] = ++count_rooms;
    } else {
      sheraj[i] = sheraj[log[i]];
      sheraj[log[i]] = -1;
    }
  }
  cout << count_rooms << endl;
}
