#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b = 0;
  cin >> n;
  int arr[n];
  set<int> s;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > n) {
      b++;
    } else
      s.insert(arr[i]);
  }
  cout << b + ((n - b) - s.size()) << endl;
}
