'use strict'
function main(input) {
  input = input.trim().split('\n')
  let max = 0
  let count = 0
  input[1].split(' ').forEach(height => {
    if (Number(height) >= max) {
      count++;
      max = Number(height)
    }
  })
  console.log(count)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
