#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, arr[5000], i, k = 0;
  cin >> x;
  for (i = 0; i < x; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + x);
  for (i = 1; i <= x; i++) {
    if (arr[i - 1] == arr[i] && arr[i] <= x && arr[i - 1] <= x) k++;
  }
  for (i = 0; i < x; i++) {
    if (arr[i] > x) k++;
  }
  cout << k << endl;
}
