#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long tt = 1;
  while (tt--) {
    long long n;
    cin >> n;
    set<long long> s;
    for (long long i = 0; i < n; i++) {
      long long temp;
      cin >> temp;
      if (temp > n) continue;
      s.insert(temp);
    }
    cout << n - s.size();
  }
  return 0;
}
