#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long N = 1e5;
const long long MAX = 1e18;
int main() {
  std::ios_base::sync_with_stdio(false);
  vector<int> v;
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mp[x]++;
    v.push_back(x);
  }
  int ct = 0;
  for (auto it = mp.begin(); it != mp.end(); it++) {
    if (it->first <= n)
      ct += it->second - 1;
    else
      ct += it->second;
  }
  cout << ct << endl;
  return 0;
}
