const input = (fs.readFileSync("/dev/stdin", "utf8") as string).split("\n");
const n = +input[0];
const h = input[1].split(" ").map(x=>+x);

let result = 0;
let max = -Infinity;
for(const x of h){
  if(x>=max) {
    result++;
    max=x;
  }
}
console.log(result);