#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  int c[n + 1];
  memset(c, -1, sizeof(c));
  int mx = 1;
  int s = 1;
  c[0] = 1;
  for (int i = 1; i <= n; i++) {
    if (c[a[i]] != -1) {
      c[i] = c[a[i]];
      c[a[i]] = -1;
    } else {
      mx++;
      c[i] = mx;
    }
  }
  cout << mx << endl;
}
