#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, p = 0, q, a[5005] = {0};
  cin >> n;
  map<long long int, long long int> c;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    c[a[i]]++;
  }
  for (i = 1; i <= 5000; i++) {
    if (c[i] > 1 && i <= n) p = p + c[i] - 1;
    if (i > n) p = p + c[i];
  }
  cout << p;
  return 0;
}
