#include <bits/stdc++.h>
using namespace std;
int a, s, d[200002], f, g, h, j, k, l, i, n, m;
int main() {
  cin >> n;
  d[0] = 1;
  for (i = 1; i <= n; i++) {
    cin >> a;
    if (d[a]) {
      d[a] = 0;
      d[i] = 1;
    } else {
      d[i] = 1;
      k++;
    }
  }
  cout << 1 + k;
}
