func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int a;     int b;     int c;     int d;     int e;     cin >> a;     int aa[a];     for (b = 0; b < a; ++b) {       cin >> aa[b];     }     d = aa[0];     c = 0;     b = 0;     vector<int> ab;     while (b < a) {       if (aa[b] > d) d = aa[b];       if ((b + 1) == d) c = c + 1;       b = b + 1;     }     cout << c << endl;     return 0;   }   