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