#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)(2e5 + 11);
const int inf = (int)(1e9 + 7);
const int base = (int)(1e9 + 7);
const int mod = (int)(1e9 + 7);
const double eps = (double)(1e-9);
int n, t[maxn], used[maxn];
int main() {
  ios_base ::sync_with_stdio(false);
  cin >> n;
  for (int i = 1; i <= n; ++i) cin >> t[i];
  int cnt = 0;
  for (int i = 1; i <= n; ++i) {
    if (!t[i]) {
      cnt++;
    } else if (!used[t[i]])
      cnt++;
    if (used[t[i]]) {
      used[t[i]]--;
    }
    used[i]++;
  }
  cout << cnt;
  return 0;
}
