#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, last = 0, arr[5001] = {};
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    if (a > n)
      last++;
    else if (arr[a])
      last++;
    else
      arr[a]++;
  }
  cout << last;
}
