#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  map<int, int>::iterator it;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    m[x]++;
  }
  for (int i = 1; i <= n; i++) {
    if (m[i] > 0) {
      m[i]--;
      if (m[i] == 0) m.erase(i);
    }
  }
  int c = 0;
  for (it = m.begin(); it != m.end(); it++) c += it->second;
  cout << c;
  return 0;
}
