#include <bits/stdc++.h>
using namespace std;
int cnt[5002 + 3];
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    memset(cnt, 0, sizeof(cnt));
    int num;
    for (int i = 0; i < n; i++) {
      scanf("%d", &num);
      cnt[num]++;
    }
    int out = 0;
    for (int i = 1; i <= n; i++) {
      if (cnt[i] == 0) out++;
    }
    printf("%d\n", out);
  }
  return 0;
}
