#include <bits/stdc++.h>
using namespace std;
vector<int> A;
int main() {
  int n;
  cin >> n;
  A.assign(n, -1);
  A[0] = 1;
  int sc = 1;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (A[x] == -1) {
      sc++;
    } else {
      A[x] = -1;
    }
    A[i] = 1;
  }
  cout << sc;
}
