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