#include <bits/stdc++.h>
using namespace std;
void ri(int &a) {
  a = 0;
  register int x = getchar_unlocked();
  bool neg = false;
  while (x < '0' || x > '9') {
    if (x == '-') neg = true;
    x = getchar_unlocked();
  }
  while (x >= '0' && x <= '9') {
    a = (a << 3) + (a << 1) + (x - '0');
    x = getchar_unlocked();
  }
  if (neg) a = -a;
}
const int maxn = 200100, INF = (1 << 30) - 1;
int n;
int notes[maxn];
bool vis[maxn];
int main() {
  ri(n);
  for (int i = 0; i < n; i++) {
    ri(notes[i]);
    notes[i]--;
  }
  int ans = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (!vis[i]) {
      ans++;
      int cur = i;
      while (cur > -1) {
        vis[cur] = true;
        cur = notes[cur];
      }
    }
  }
  printf("%d\n", ans);
  return 0;
}
