function Main(input){
	input = input.split("\n")
	var n = input[0];
	var arr = input[1].split(" ").map(Number);
	var max = 0;
	var sum = 0;
	for(var i=0;i<n;i++){
		if(max<=arr[i]){
			max = arr[i];
			sum++;
		}
	}
	console.log(sum);
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());