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