#include <bits/stdc++.h>
using namespace std;
int n, m, x, y, z, k, w, ans, A[200005], v[200005];
int main() {
  scanf("%d", &n);
  for (int i = (1); i <= (n); i++) scanf("%d", &A[i]);
  ans = 1;
  v[0] = 1;
  for (int i = (1); i <= (n); i++) {
    if (v[A[i]] == 1) {
      v[A[i]] = 0;
      v[i] = 1;
    } else {
      ans++;
      v[i] = 1;
    }
  }
  printf("%d\n", ans);
  return 0;
}
