#include <bits/stdc++.h>
using namespace std;
const int oo = 999999999;
const double PI = 3.1415931;
const double eps = 1e-9;
const int maxN = 200000 + 10;
int ans = 0, n, a[maxN];
bool mark[maxN];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == 0) {
      ans++;
    } else if (mark[a[i]]) {
      ans++;
    }
    mark[a[i]] = true;
  }
  cout << ans << endl;
  return 0;
}
