#include <bits/stdc++.h>
using namespace std;
const int MX = 200005;
int n, a[MX], ex[MX], res;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  ex[0] = res = 1;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (!ex[a[i]]) res++;
    ex[a[i]] = 0;
    ex[i] = 1;
  }
  cout << res << '\n';
  return 0;
}
