func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     long long n;     cin >> n;     vector<long long> a(n);     map<long long, long long> mp;     long long ans = 0;     for (long long i = 0; i < n; i++) {       cin >> a[i];       if (mp[a[i]]) {         mp[a[i]] = 0;         mp[i + 1] = 1;       } else {         mp[i + 1] = 1;         ans++;       }     }     cout << ans;     return 0;   }   