#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int n, cnt[N], ans;
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    ++cnt[x];
  }
  ++cnt[0];
  for (int i = 0; i < n; ++i) ans += max(0, cnt[i] - 1);
  cout << ans;
}
