#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, tmp;
  cin >> n;
  set<int> s;
  int m = 0;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (tmp <= n) s.insert(tmp);
  }
  if ((int)s.size() == n)
    cout << 0 << endl;
  else
    cout << n - (int)s.size() << endl;
  ;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ;
  solve();
}
