fun main(args: Array<String>){
  var n = readLine()!!.toInt()
  var h = readLine()!!.split(" ").map(String::toInt)
  var a = 0
  var num = h[0]
  for(i in 0..n-1){
    if(num<=h[i]){
      a++
      num = h[i]
    }
  }
  println(a)
}