#include <bits/stdc++.h>
using namespace std;
int n, a[200005], ans, cur;
bool used[200005];
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    used[i] = false;
  }
  used[0] = false;
  ans = 0;
  for (int i = n; i >= 1; --i) {
    if (!used[i]) {
      ans++;
      used[i] = true;
      cur = a[i];
      while (!used[cur]) {
        used[cur] = true;
        cur = a[cur];
        if (cur == 0) {
          used[0] = true;
          break;
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}
