#include <bits/stdc++.h>
using namespace std;
int n, val, cnt, cur[200005];
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  cnt = 1;
  cur[0] = 1;
  for (int i = (1); i <= (n); i++) {
    cin >> val;
    if (cur[val]) {
      cur[i] = cur[val];
      cur[val] = 0;
    } else {
      cur[i] = ++cnt;
    }
  }
  cout << cnt;
}
