#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  long long a[n + 1];
  for (long long i = 0; i <= n; i++) a[i] = -1;
  a[0] = 1;
  long long cur = 1;
  for (long long i = 1; i <= n; i++) {
    long long x;
    cin >> x;
    if (a[x] == -1) {
      cur++;
      a[i] = cur;
    } else {
      a[i] = a[x];
      a[x] = -1;
    }
  }
  cout << cur << '\n';
}
