#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 10;
const long long MOD = 1e9 + 7;
const long long MAXN = 1e6 + 10;
const long long LOG = 20;
const long long P = 239017;
const long long BINF = 1e18 + 10;
const long long LINF = LLONG_MAX;
const long double EPS = 1e-9;
const long double PI = acos(-1);
inline void error() {
  cout << -1;
  exit(0);
}
long long n, a, arr[MAXN], last[MAXN];
inline void source() {
  cin >> n;
  long long cnt = 1;
  last[1] = 0;
  arr[0] = 1;
  for (long long i = 1; i <= n; i++) {
    cin >> a;
    if (last[arr[a]] == a) {
      arr[i] = arr[a];
      last[arr[i]] = i;
      continue;
    }
    cnt++;
    last[cnt] = i;
    arr[i] = cnt;
  }
  cout << cnt;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(time(0));
  source();
  return 0;
}
