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