function Main(input) {
  "use strict";
	const lines = input.split("\n");
  const n = parseInt(lines[0], 10);
  let nums = lines[1].split(" ").map(s => parseInt(s, 10));

  let ans = 0;
  let highest = 0;
  nums.forEach( x => {
    if ( x >= highest) { ans++; highest = x;}
  })
  console.log(ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));