#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p = 0;
  cin >> n;
  int nums[10000], numsCount[10000], max = -1;
  for (int i = 1; i <= n; i++) cin >> nums[i];
  for (int i = 1; i <= n; i++) {
    numsCount[nums[i]]++;
    if (nums[i] > n) p++;
  }
  for (int i = 1; i <= n; i++) {
    if (numsCount[i] > 1) p += numsCount[i] - 1;
  }
  cout << p;
  return 0;
}
