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