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