#include <bits/stdc++.h>
using namespace std;
const int N = 256 * 1024;
int n;
bool sec[N];
int main() {
  for (int i = 0; i < N; i++) {
    sec[i] = 0;
  }
  cin >> n;
  sec[0] = 1;
  int ans = 1;
  for (int i = 1; i <= n; i++) {
    int curT;
    cin >> curT;
    if (sec[curT]) {
      sec[curT] = 0;
      sec[i] = 1;
    } else {
      ans++;
      sec[i] = 1;
    }
  }
  cout << ans;
  return 0;
}
