#include #include using namespace std; int main() { int n; cin >> n; vector v(n); for(int i=0;i> v[i]; int ma = 0; int cnt = 0; for(int i=0;i v[i]) cnt++; else ma = v[i]; } cout << cnt << endl; }