#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int i, t;
  cin >> t;
  int arr[t + 1];
  for (i = 1; i < t + 1; i++) {
    cin >> arr[i];
  }
  int totalRoom = 1, time[t + 1], room[t + 1];
  time[0] = 1;
  room[1] = 0;
  for (i = 1; i < t + 1; i++) {
    int roomno = time[arr[i]];
    int attime = room[roomno];
    if (arr[i] == attime) {
      room[roomno] = i;
      time[i] = roomno;
    } else {
      totalRoom++;
      room[totalRoom] = i;
      time[i] = totalRoom;
    }
  }
  cout << totalRoom << endl;
}
