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