#include <bits/stdc++.h>
const int N = 1e5;
using namespace std;
int n, f[5001], ans, x;
int main() {
  cin >> n;
  ans = n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    ans -= !f[x] && x <= n;
    f[x] = 1;
  }
  cout << ans;
  return 0;
}
