#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v;
  int ans = n;
  while (n--) {
    int x;
    scanf("%d", &x);
    if (x) v.push_back(x);
  }
  sort(v.begin(), v.end());
  ans -= unique(v.begin(), v.end()) - v.begin();
  cout << ans << endl;
}
