#include <bits/stdc++.h>
using namespace std;
void FREOPEN() {
  freopen(
      ""
      ".in",
      "r", stdin);
  freopen(
      ""
      ".out",
      "w", stdout);
}
inline double Time() { return (clock() * 1.0) / CLOCKS_PER_SEC; }
const int N = 200500, inf = 1e9 * 2, MOD = (int)1e9 + 7;
char CH[N];
const long long INF = 1e18;
const int dx[] = {1, -1, 0, 0, -1, 1, -1, 1};
const int dy[] = {0, 0, 1, -1, -1, 1, 1, -1};
int was[N], mi[N];
int main() {
  int n;
  cin >> n;
  for (int i = 2; i <= n; i++) was[i] = -1;
  mi[0] = 1;
  int ans = 1;
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    if (was[mi[x]] == x) {
      was[mi[x]] = i;
      mi[i] = mi[x];
    } else {
      ans++;
      was[ans] = i;
      mi[i] = ans;
    }
  }
  cout << ans;
  return 0;
}
