#include <bits/stdc++.h>
using namespace std;
template <typename H>
void read(H& head) {
  cin >> head;
}
template <typename H>
void write(H head) {
  cout << head << '\n';
}
template <typename H, typename... T>
void write(H head, T... tail) {
  cout << head << " ";
  write(tail...);
}
int main() {
  int t = 1;
  while (t > 0) {
    int n;
    read(n);
    unordered_set<int> seen;
    seen.insert(0);
    int rooms = 0;
    for (int i = 0; i < (n); ++i) {
      int log;
      read(log);
      if (seen.count(log))
        rooms++;
      else
        seen.insert(log);
    }
    write(rooms);
    t--;
  }
}
