function Main(input) {
  var str = input.split("\n");
  var amount = parseInt(str[0],10);
  var nstr = str[1].split(" ");
  var nums = [];
  for(var i = 0;i < amount;i++) {
    nums.push(parseInt(nstr[i],10));
  }
  var count = 1;
  var max = nums[0];
  for(var i = 1;i < amount;i++) {
    var isb = true;
    if(max < nums[i]) {
      isb = false;
      max = nums[i];
    }else {
      for(var j = 0;j < i;j++) {
		if(nums[i] <= nums[j]) {
        }else {
          isb = false;
          break;
        }
      }
    }
    if(isb) {
      count++;
    }
  }
  console.log(count);
}

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