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