#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200000 + 112;
int a[MAXN];
signed main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    a[x]++;
  }
  long long ans = a[0];
  for (int i = 1; i <= n; ++i) {
    if (a[i] > 0) {
      ans += a[i] - 1;
    }
  }
  cout << ans;
  return 0;
}
