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