function Main(input){
  input = input.split('\n');
  H = input[1].split(' ');
  S = 0;
  max = 0;
  H.forEach(n => {
    if (n >= max) {
      S++;
      max = n;
    }
  });
  console.log(S);
}

Main(require("fs").readFileSync("/dev/stdin","utf-8"));
