#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200000 + 10;
int a[MAXN];
int main() {
  ios::sync_with_stdio(false);
  set<int> se;
  memset(a, 0x00, sizeof(a));
  a[0] = 1;
  int n;
  cin >> n;
  int ans = 1;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    if (a[x])
      --a[x];
    else
      ++ans;
    ++a[i];
  }
  cout << ans;
}
