#include <bits/stdc++.h>
using namespace std;
int mass[1123456];
int main() {
  int n;
  cin >> n;
  int ans = 1;
  mass[0] = 1;
  for (int i = 1; i <= n; i++) {
    int a;
    cin >> a;
    if (mass[a] == 1) {
      mass[i] = 1;
      mass[a] = 0;
    } else {
      mass[i] = 1;
      ans++;
    }
  }
  cout << ans;
  return 0;
}
