#include <bits/stdc++.h>
using namespace std;
int const inf = 1e9;
long long const inf64 = 1e18;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> t(n + 1);
  vector<int> c(n + 1);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &t[i]);
    c[t[i]]++;
  }
  printf("%d\n", count((c).begin(), (c).end(), 0));
  return 0;
}
