'use strict';

function Main(input) {
  const H = input.split("\n")[1].split(" ").map(x => Number(x))
  
  let height = 0
  let ans = 0

  for (let h of H) {
    if (h >= height) {
      ans++
      height = h
    }
  }

  console.log(ans)  
};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
