#include <bits/stdc++.h>
using namespace std;
bool taken[200009];
int main() {
  int n;
  scanf("%d", &n);
  int prv = -1;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int v;
    scanf("%d", &v);
    if (v > 0 && !taken[v])
      taken[v] = true;
    else
      ans++;
  }
  printf("%d", ans);
}
