#include <bits/stdc++.h>
using namespace std;
inline void invi(vector<int> &a) {
  for (int i = 0; i < a.size(); i++) scanf("%i", &a[i]);
}
inline void outvi(vector<int> &a) {
  for (int i = 0; i < a.size(); i++) printf("%i ", a[i]);
}
int main() {
  int size;
  cin >> size;
  vector<int> mas(size);
  invi(mas);
  set<int> second;
  int answer = 0;
  for (size_t i = 0; i < size; i++)
    if (second.find(mas[i]) == second.end())
      second.insert(i + 1), answer++;
    else
      second.erase(mas[i]), second.insert(i + 1);
  cout << answer;
}
