#include <bits/stdc++.h>
const int N = 200005;
int to[N], a[N];
inline int read() {
  int x = 0;
  char e = getchar();
  for (; e < '0' || e > '9'; e = getchar())
    ;
  for (; e >= '0' && e <= '9'; e = getchar())
    x = (x << 1) + (x << 3) + (e ^ 48);
  return x;
}
int main() {
  int n = read(), ans = 1;
  for (int i = 1; i <= n; i++) a[i] = read();
  to[0] = 1;
  for (int i = 1; i <= n; i++) {
    if (to[a[i]]) {
      to[i] = to[a[i]];
      to[a[i]] = 0;
    } else
      to[i] = ++ans;
  }
  printf("%d", ans);
  return 0;
}
