#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<bool> visT(n, false);
  visT[0] = true;
  long long numVis = 1;
  for (long long i = 1; i <= n; ++i) {
    long long t;
    cin >> t;
    if (visT[t])
      visT[t] = false;
    else
      ++numVis;
    visT[i] = true;
  }
  cout << numVis << endl;
  return 0;
}
