#include <bits/stdc++.h>
using namespace std;
vector<long long> ans;
long long level = 0;
void solve() {
  long long n;
  cin >> n;
  long long a[n + 1];
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  map<long long, long long> m;
  long long ans = 0;
  for (int i = 1; i <= n; ++i) {
    m[a[i]]++;
  }
  for (auto i : m) {
    if (i.first == 0)
      ans += i.second;
    else
      ans += (i.second - 1);
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
}
