#include <bits/stdc++.h>
using namespace std;
int n, i, j, ans, a, vis[10000];
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a;
    vis[a] = 1;
  }
  ans = n;
  for (i = 1; i <= n; i++)
    if (vis[i]) ans--;
  cout << ans << endl;
}
