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