'use strict'
let input = require("fs").readFileSync("/dev/stdin", "utf8");
input = input.split('\n');
let info = input.shift();
let H = input[0].split(' ').map(x=> x*1);
let ans = 0;
let max = H[0];
H.forEach(
  h=>{
    if(h >= max){
    	ans++;
      max = h;
    }
  }
);

console.log(ans);