#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int X = 0, w = 0;
  char ch = 0;
  while (!isdigit(ch)) {
    w |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) X = (X << 3) + (X << 1) + (ch ^ 48), ch = getchar();
  return w ? -X : X;
}
map<int, int> mp;
int main() {
  int ans = 1;
  int n = read();
  mp[0] = 1;
  for (int i = 1; i <= n; i++) {
    int k = read();
    if (mp[k]) {
      mp[i]++;
      mp[k]--;
    } else {
      mp[i]++;
      ans++;
    }
  }
  cout << ans;
  return 0;
}
