"use strict"

function Main(input) {
  input = input.split('\n');
  let N = parseInt(input.shift());
  let array = input.shift().split(' ');
  let result = 0;
  let max = 0;
  for (let i=0;i<N;i++){
    let tmp = array[i];
    if (tmp >= max) {
      max = tmp;
      result++;
    }
  }
  console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
