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