#include <bits/stdc++.h>
using namespace std;
int a[5100];
int main() {
  int n;
  scanf("%d", &n);
  int count = 0, num;
  int x = n;
  while (n--) {
    scanf("%d", &num);
    if (a[num] || num > x)
      count++;
    else
      a[num]++;
  }
  printf("%d\n", count);
  return 0;
}
