#include <bits/stdc++.h>
using namespace std;
bool Vis[5000];
int main() {
  int n, K;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> K;
    Vis[K - 1] = 1;
  }
  K = 0;
  for (int i = 0; i < n; ++i) {
    if (Vis[i]) K++;
  }
  cout << n - K;
  return 0;
}
