"use strict";

function Main(input) {
  input = input.split("\n");
  N = parseInt(input[0], 10);
  H = input[1].split(" ").map(function (v) {
    return parseInt(v, 10);
  });
  var result = 0;
  var max = 0;

  for (var i = 0; i < N; i++) {
    if (H[i] >= max) {
      result++;
      max = H[i];
    }
  }

  console.log(result);
}

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

