#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 1;
  cin >> n;
  int ar[n];
  ar[0] = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> ar[i];
    if (ar[ar[i]] == 0) {
      ar[ar[i]] = -1;
      ar[i] = 0;
    } else if (ar[ar[i]] == -1) {
      ar[i] = 0;
      count++;
    } else {
      ar[i] = 0;
      count++;
    }
  }
  cout << count;
}
