#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
vector <int> a(n);
for(int i = 0; i < n; i++) {
cin >> a[i];
}
int caterulo = 1 ;
for(int i = 1; i < n-1; i++) {
if (a[i] <= a[i+1]){
caterulo++;
}
}
cout << caterulo << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: