#include <bits/stdc++.h>
using namespace std;
int f[300005];
int main() {
  int n, ans = 0, t;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &t);
    f[t] = 1;
  }
  for (int i = 1; i <= n; ++i) {
    if (!f[i]) ans++;
  }
  cout << ans;
  return 0;
}
