#include <bits/stdc++.h>
using namespace std;
int solve(void) {
  int N, arr[5333], ans = 0;
  cin >> N;
  memset(arr, 0, sizeof arr);
  for (int i = 0, tmp; i < (int)N; i += 1) {
    cin >> tmp;
    arr[tmp]++;
  }
  for (int i = 1; i < (int)N + 1; i += 1) {
    ans += arr[i] == 0;
  }
  cout << ans << endl;
  ;
  return 0;
}
int main(void) {
  solve();
  return 0;
}
