#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    vector<int> vec;
    for (int i = 0; i < n; i++) {
      int c;
      cin >> c;
      vec.push_back(c);
    }
    int ans = 0;
    bool check[5001] = {0};
    for (int i = 0; i < vec.size(); i++) {
      check[vec[i]] = true;
    }
    for (int i = 0; i < n; i++)
      if (!check[i + 1]) ans++;
    cout << ans << endl;
  }
}
