#include <bits/stdc++.h>
using namespace std;
const int maxn = (1e5) + 10;
const int INF = (1e9);
const long long inf = (1e18);
const double eps = (1e-9);
const long double PI = acos(-1);
int t[2 * maxn], n, u[2 * maxn], ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> t[i];
    if (!u[t[i]]) {
      u[i] = 1;
      ans++;
    } else {
      u[t[i]] = 0;
      u[i] = 1;
    }
  }
  cout << ans;
  return 0;
}
