#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
const long long mod = 1e9 + 7;
const long long N = 2e5 + 5;
long long a[N], s[N] = {0}, pos[N] = {0};
long long n, cnt = 1;
vector<long long> ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (long long i = 0; i < (n); ++i) cin >> a[i + 1];
  for (int i = n; i > 0; i--) s[a[i]]++;
  pos[0] = 1;
  for (int i = 1; i <= n; i++) {
    s[a[i]]--;
    if (pos[a[i]]) {
      if (s[a[i]] == 0) {
        ans.push_back(pos[a[i]]);
        pos[i] = pos[a[i]];
        pos[a[i]] = 0;
        continue;
      }
    }
    cnt++;
    ans.push_back(cnt);
    pos[i] = cnt;
  }
  cout << cnt << endl;
}
