function Main(input) {
  var input = input.split("\n");
  var N = input[0];
  var aryH = input[1].split(" ").slice(0, N).map(val => parseInt(val, 10));
  var result = 0;
  aryH.forEach(function(e, i) {
    if(i === 0) {
      result++;
      return;
    }

    var checkary = aryH.slice(0, i).filter(function(elm){
      return elm > e;
    });
    if(checkary.length === 0) {
      result++;
    }
  });

  console.log(result);

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