#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t[n + 1];
  int r[n + 1];
  int a[n + 1];
  int x = 1;
  for (int i = 0; i < n; i++) {
    cin >> t[i + 1];
    r[i + 1] = -1;
    a[i + 1] = -1;
  }
  r[0] = 0;
  a[0] = 0;
  for (int i = 1; i <= n; i++) {
    int room = r[t[i]];
    if (a[room] == t[i]) {
      a[room] = i;
      r[i] = room;
    } else {
      a[x] = i;
      r[i] = x;
      x++;
    }
  }
  cout << x;
  return 0;
}
