#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
int n, t[200015], flag[200015];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &t[i]);
  }
  int ans = 0;
  for (int i = n; i; --i) {
    if (flag[i]) continue;
    ++ans;
    int j = i;
    while (j && !flag[j]) {
      flag[j] = 1;
      j = t[j];
    }
  }
  printf("%d", ans);
  return 0;
}
