#include <bits/stdc++.h>
using namespace std;
int main() {
  bool vis[2 * 100005];
  vis[0] = true;
  int n, log[2 * 100005], num = 1, flag;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> log[i];
    if (vis[log[i]]) {
      vis[log[i]] = false;
      vis[i] = true;
    } else {
      num++;
      vis[i] = true;
    }
  }
  cout << num << endl;
  return 0;
}
