#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  int n;
  cin >> n;
  int arr[5001] = {0};
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    arr[x]++;
  }
  for (int i = 1; i <= n; i++) {
    if (arr[i] >= 2) ans += arr[i] - 1;
  }
  for (int i = n + 1; i <= 5000; i++) ans += arr[i];
  cout << ans;
}
