#include <bits/stdc++.h>
using namespace std;
int n;
void solve() {
  int i, sum, a[10005], b;
  sum = 0;
  for (i = 0; i < 10005; i++) {
    a[i] = 1;
  }
  for (i = 0; i < n; i++) {
    scanf("%d", &b);
    a[b] = 0;
  }
  for (i = 1; i <= n; i++) {
    sum += a[i];
  }
  printf("%d", sum);
  return;
}
int main() {
#pragma comment(linker, "/STACK:1073741824")
  scanf("%d", &n);
  solve();
  return 0;
}
