#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int j = 0, k, i;
  int a[5001] = {0};
  vector<int> d;
  for (i = 0; i < n; i++) {
    cin >> k;
    if (a[k] == 0 && k <= n) {
      a[k]++;
    }
  }
  for (i = 1; i <= n; i++)
    if (a[i] == 0) j++;
  cout << j;
}
