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