#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  vector<long long int> a, b;
  long long int i, j;
  cin >> n;
  map<long long int, long long int> m;
  for (i = 0; i < n; i++) {
    long long int d;
    cin >> d;
    a.push_back(d);
  }
  long long int visited[1000000];
  long long int min = 1, cnt = 1;
  long long int temp = 1, room;
  m[0] = 1;
  visited[1] = 0;
  for (i = 0; i < n; i++) {
    long long int t = a[i];
    if (m[t]) {
      room = m[t];
      if (visited[room] == t) {
        visited[room] = i + 1;
        m[i + 1] = room;
      } else {
        cnt++;
        temp++;
        m[i + 1] = temp;
        visited[temp] = i + 1;
      }
    }
  }
  cout << cnt << endl;
  return 0;
}
