#include <bits/stdc++.h>
using namespace std;
int n, raw[200100], pos[200100], tot;
void sread() {
  scanf("%d", &n);
  for (int i = 1, __yukii__ = n; i <= __yukii__; ++i) scanf("%d", raw + i);
}
int main(int argc, char **argv) {
  sread();
  pos[0] = ++tot;
  for (int i = 1, __yukii__ = n; i <= __yukii__; ++i)
    if (pos[raw[i]]) {
      pos[i] = pos[raw[i]];
      pos[raw[i]] = 0;
    } else
      pos[i] = ++tot;
  printf("%d\n", tot);
  return 0;
}
