#include <iostream>

using namespace std;
int main()
{ // input
    int N;
    cin >> N;
    vector<int> H(N);
    for (int i = 0; i < N; ++i)
    {
        cin >> H[i];
    }
    // compute
    int ans = 0;
    int Max_Height = -1;

    for(int i = 0; i < N; i++)
    {
        if(H[i] >= Max_Height){
            ans++;
            Max_Height = H[i];
        }
    }
    
    // output
    cout << ans << endl;
}