#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
  long long n;
  cin >> n;
  map<int, int> mp;
  int q = n;
  while (q--) {
    int x;
    cin >> x;
    mp[x]++;
  }
  long long ans = 0;
  for (auto it : mp) {
    if (it.first <= n)
      ans += (it.second - 1);
    else
      ans += it.second;
  }
  cout << ans << '\n';
}
