#include <stdio.h>

int main(){
    int n;
    int h[101]; 
 
    scanf("%d", &n);
    for(int i=0 ; i<n; ++i)scanf("%d",&h[i]);
 
    int max_height = h[0];
    int count=1;
    for(int i=1 ; i<n ; ++i){
        if(max_height <= h[i])
            count++;
            max_height = h[i];
    }
    printf("%d", count);
    re