#include <bits/stdc++.h>
using namespace std;
int used[1000000];
int u[1000000];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  int ans = 1;
  u[1] = 0;
  used[0] = 1;
  for (int i = 1; i <= n; i++) {
    int a;
    cin >> a;
    if (!used[a]) {
      ans++;
      used[i] = ans;
      u[ans] = i;
    } else {
      int z = used[a];
      u[used[a]] = i;
      used[a] = 0;
      used[i] = z;
    }
  }
  cout << ans;
}
