#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int ans = 1, x, n;
  set<int> has;
  has.insert(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (has.count(x)) {
      has.erase(x);
      has.insert(i);
    } else {
      ans++;
      has.insert(i);
    }
  }
  cout << ans << endl;
  return 0;
}
