#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
bool arr[5010];
int main() {
  int n, first;
  scanf("%d", &n);
  int ans = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &first);
    if (first > n || arr[first]) ans++;
    arr[first] = true;
  }
  printf("%d\n", ans);
  return 0;
}
