#include <bits/stdc++.h>
using namespace std;
const long long int inf = 1LL << 62;
inline double ttime(double t) {
  double tt = ((double)t) / CLOCKS_PER_SEC;
  return tt;
}
map<long long int, long long int> st;
void boost() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  boost();
  long long int n, x;
  cin >> n;
  for (long long int i = 0; i < (n); i++) {
    cin >> x;
    st[x]++;
  }
  cout << n - st.size() + 1 << "\n";
  return 0;
}
