#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, z;
  cin >> n;
  map<int, int> mp;
  map<int, int>::iterator it;
  for (int i = 0; i < n; i++) {
    cin >> z;
    mp[z]++;
  }
  int ans = 0, max = INT_MIN;
  for (it = mp.begin(); it != mp.end(); ++it) {
    if (it->first > n) ans += it->second;
    if (it->first <= n && it->second > 1) ans += (it->second - 1);
  }
  cout << ans << endl;
  return 0;
}
