#include <bits/stdc++.h>
using namespace std;
int Count(int *arr, bool *IsCheck, int n) {
  int count = 0;
  for (int i = n - 1; i >= 0; --i) {
    if (IsCheck[i]) continue;
    int idx = arr[i];
    while (!IsCheck[idx]) {
      IsCheck[idx] = true;
      idx = arr[idx];
    }
    ++count;
  }
  return count;
}
int main(int argc, const char *argv[]) {
  int n;
  cin >> n;
  int *arr = new int[n + 1];
  bool *IsCheck = new bool[n + 1];
  arr[0] = 0;
  IsCheck[0] = true;
  for (int i = 1; i <= n; ++i) {
    cin >> arr[i];
    IsCheck[i] = false;
  }
  cout << Count(arr, IsCheck, n + 1) << endl;
  delete[] arr;
  delete[] IsCheck;
  return 0;
}
