#include <bits/stdc++.h>
int count[5001] = {0}, i = 0, n, a, c = 0;
int main() {
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    count[a - 1]++;
  }
  for (i = 0; i < n; i++)
    if (count[i] == 0) c++;
  printf("%d\n", c);
  return 0;
}
