"use strict";
function main(input) {
  let heights = input
    .split(/\n/)[1]
    .split(/\s/)
    .map(s => Number(s));
  let res = 0;
  let maxHeight = 0;
  heights.forEach(height => {
    if (height >= maxHeight) {
      res++;
      maxHeight = height;
    }
  });
  console.log(res);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
