#include <iostream>
using namespace std;

int main() {
    int N, b, a, c;
    cin >> N;
   c = 0;
   a = 0;
for(i=0; i <= N; i++) {
    cin >> b;
    if(b>c) {
 a++;
b = c;
}
}
    else cout << a << endl;
}