#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
int n, a, ans, A[N];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &a);
    ++A[a];
  }
  for (int i = 1; i <= n; ++i)
    if (!A[i]) ++ans;
  printf("%d\n", ans);
}
