#include <bits/stdc++.h>
int main(void) {
  int n, a[5002], temp, i, N, count;
  while (scanf("%d", &n) != EOF) {
    for (i = 1; i <= n; i++) a[i] = 1;
    N = n;
    while (n--) {
      scanf("%d", &temp);
      a[temp] = 0;
    }
    count = 0;
    for (i = 1; i <= N; i++) count += a[i];
    printf("%d\n", count);
  }
  return 0;
}
