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