#include <bits/stdc++.h>
int arr[1000100];
int ans = 1;
int main() {
  int n;
  scanf("%d", &n);
  arr[0] = 1;
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    if (arr[x] > 0) {
      arr[x]--;
      arr[i]++;
    } else {
      ans++;
      arr[i]++;
    }
  }
  printf("%d", ans);
}
