'use strict'
function Main(input) {
    input = input.split("\n")
    const heights = input[1].split(' ').map(i => {
      return parseInt(i, 10)
    })
 
    const result = heights.filter((val, index, array) => {
      let max = Math.max(...array.slice(0, index+1))
      return max <= val
    }).length

    console.log(result)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))