#include <bits/stdc++.h>
using namespace std;
int n;
set<int> pt;
set<int> lt;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  int tp = -12;
  int g = 0;
  int ans = 0;
  for (int t = 1; t <= n; ++t) {
    int i;
    cin >> i;
    if (lt.count(i)) {
      lt.erase(i);
    } else
      ++ans;
    lt.insert(t);
  }
  cout << ans << "\n";
}
