#include <bits/stdc++.h>
using namespace std;
const int maxn = 200011;
int a[maxn], b[maxn];
int i, j, k, m, n, ans;
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  b[0] = ans = 1;
  for (i = 1; i <= n; i++)
    if (b[a[i]] > 0) {
      b[i] = b[a[i]];
      b[a[i]] = 0;
    } else
      b[i] = ++ans;
  printf("%d\n", ans);
  return 0;
}
