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