#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n, a;
  unordered_set<long long int> s;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    if (a <= n) s.insert(a);
  }
  cout << n - s.size();
}
