#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> t;
  for (int i = 0; i < n; i++) {
    int el;
    cin >> el;
    t.push_back(el);
  }
  vector<bool> arr;
  arr.assign(n + 1, 0);
  arr[0] = 1;
  int ans = 1;
  for (int i = 0; i < n; i++) {
    if (arr[t[i]] == 1) {
      arr[t[i]] = 0;
    } else {
      ans++;
    }
    arr[i + 1] = 1;
  }
  cout << ans;
  return 0;
}
