object Main{
	def main(args:Array[String]){
		val s = new java.util.Scanner(System.in)
		val n=s.nextInt
		var prev=0
		var r=0
		for(_ <-1 to n){
			val v=s.nextInt
			if(prev<=v){
				prev=v
				r+=1
			}
		}

		println(r)
	}
}