#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, inp, counter = 1;
  cin >> n;
  std::vector<long long> v(n + 5, 0);
  v[0] = 1;
  for (int i = 1; i < n + 1; i++) {
    cin >> inp;
    if (v[inp] == 1) {
      v[inp] = 0;
    } else
      counter++;
    v[i] = 1;
  }
  cout << counter << endl;
  return 0;
}
