#include <bits/stdc++.h>
int main() {
  long long int n, ar[99990], i = 1, freq[6000], coun = 0;
  memset(freq, 0, sizeof(freq));
  scanf("%I64d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%I64d", &ar[i]);
    freq[ar[i]] += 1;
  }
  for (i = 1; i <= 6000; i++) {
    if ((freq[i] >= 2) && (i <= n)) coun += freq[i] - 1;
    if ((freq[i] >= 1) && (i > n)) coun += freq[i];
  }
  printf("%I64d", coun);
  return 0;
}
