#include <bits/stdc++.h>
using namespace std;
const int maxn = 200011;
int n, a[maxn];
void init() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", a + i);
}
bool b[maxn];
void work() {
  int ans = n;
  b[0] = 1;
  for (int i = 1; i <= n; ++i)
    if (!b[a[i]]) --ans, b[a[i]] = 1;
  printf("%d\n", ans);
}
int main() {
  init();
  work();
  return 0;
}
