#include <bits/stdc++.h>
using namespace std;
int n, a[6000], cnt;
map<int, int> M;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &a[i]);
    M[a[i]]++;
  }
  for (int i = 1; i <= n; ++i) {
    cnt += (M[i] >= 1);
  }
  printf("%d", n - cnt);
  return 0;
}
