#include <bits/stdc++.h>
using namespace std;
const int N = 1e9 + 1;
const long double pi = 3.1415926535897;
void solve() {
  int n, ans(0);
  cin >> n;
  int a[n], b[5001] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (b[a[i]] == 0) b[a[i]] = 1;
  }
  for (int i = 1; i < n + 1; i++)
    if (!b[i]) ans++;
  cout << ans;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
