"use strict";
const Main = (input) =>{
    let xs = input.trim().split('\n');
    let H = xs[1].trim().split(' ').map(v=>parseInt(v,10));
    let count = 0;
    let Max = 0;
    for(let i =0; i<xs[0]; i++){
        if(H[i]>= Max){
        count++
        }
        if(Max < H[i]){
        Max = H[i];
        }
    }
    console.log(count);
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));