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