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