//testcode.cpp
#include <iostream>
using namespace std;

int main() {
    int N , counter;
    counter = 1;

    cin >> N;

    int arr[N];
    for(int i { 0 }; i < N; ++i){
        cin >> arr[i];
    }

    for(int i { 1 }; i < N; ++i){
        if (arr[i] >= arr[i - 1])
        {
            if (arr[i] >= arr[0])||(arr[i] >= arr[1])
                {
                  counter++;
                }
        }
    }
    cout << counter ;
}