fun main (args: Array<String>) {
	
	val rnum = readLine()
	val list = readLine()!!.split(" ").map(String::toInt)
	
	var hnum = 0
	var vnum = list[0]
	var result = 0
	
	for (i in 0..list.size - 1) {
		hnum = list[i]
		
		if (hnum >= vnum || hnum == vnum) {
			vnum = hnum
			result += 1
			
		}
		
	}
	
	println("${result}")
	
}