#include <bits/stdc++.h>
using namespace std;
int a[200005];
map<int, int> can;
map<int, int> h;
int main() {
  int n, k = 1;
  cin >> n;
  can[0] = 1;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    if (can[a[i]] > 0) {
      can[i] = can[a[i]];
      can[a[i]] = 0;
    } else {
      can[i] = k++;
    }
  }
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    if (can[i] > 0) cnt++;
  }
  cout << cnt;
}
