#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 3;
bool x[N];
int main() {
  memset(x, 0, sizeof(x));
  int n, ans = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    int k;
    scanf("%d", &k);
    if (x[k]) {
      x[k] = 0;
    } else
      ++ans;
    x[i] = 1;
  }
  printf("%d", ans);
  return 0;
}
