#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, t, changes = 0, remainder = 0;
  cin >> n;
  vector<bool> seed(n);
  remainder = n;
  for (int i = 0; i < n; ++i) {
    cin >> t;
    if (t > n || seed[t - 1])
      changes++;
    else {
      remainder--;
      seed[t - 1] = true;
    }
  }
  cout << min(changes, remainder) << endl;
  return EXIT_SUCCESS;
}
