#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const double PI = 2 * acos(0.0);
const double eps = 1e-9;
const int NPOS = -1;
const int MAX = 1005;
int n, x, sm;
set<int> st;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = int(0); i < int(n); ++i) {
    cin >> x;
    st.insert(x);
  }
  for (auto a : st)
    if (a < 1 || a > n) ++sm;
  cout << n - st.size() + sm << '\n';
  return 0;
}
