"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = ~~arg[0];
    const H = arg[1].split(" ").map(n=>~~n);
    
    let answer = 1;
    let heighest = H[0];
    
    for(let i=1; i<N; i++) {
        if(H[i] >= heighest) {
            answer++;
        }
        
        if(H[i] > heighest) {
            heighest = H[i];
        }
    }
    
    console.log(answer);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));