#include <bits/stdc++.h>
using namespace std;
int a[5001] = {0};
int main() {
  int n;
  cin >> n;
  int k;
  for (int i = 0; i < n; i++) {
    cin >> k;
    a[k]++;
  }
  int f = 0;
  for (int h = 0; h < 5001; h++) {
    if (a[h] != 0) {
      if (h <= n)
        f = f + (a[h] - 1);
      else
        f = f + a[h];
    }
  }
  cout << f;
  return 0;
}
