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