var n: Int = Int(readLine()!)!
var arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}
var highest: Int = 0
var o: Int = 0

for var i = 0; i < n; i++ {
  if( highest <= arr[i] ) {
    highest = arr[i]
    o+=1
  } 
}
print (o)
