#include <bits/stdc++.h>
using namespace std;
const int _ = 1e2;
const int maxn = 2e5 + _;
int c[maxn];
bool v[maxn];
int main() {
  int n, x, ans = 0;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &c[i]);
    if (!v[c[i]]) v[c[i]] = true;
  }
  for (int i = 1; i <= n; i++)
    if (!v[i]) ans++;
  printf("%d\n", ans);
  return 0;
}
