'use strict'
function Main(input) {

  let tmp = input.split('\n');
  let Num = parseInt(tmp[0]);
  let Mtn = tmp[1].split(' ').map(Number);

  let Count = 1;
  let Higher = Mtn[0];

  for (let i = 1; i <= Num - 1; i++) {
    if (Higher <= Mtn[i]) {
      Count += 1;
      Higher = Mtn[i];
    }
  }

  console.log(Count);


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