import scala.io.StdIn._

object Main extends App {

  val n = readInt()
  val A = readLine().split(" ").map(_.toInt)

  def solve() = {
    val cntAndMax = (0, A.head)
    A.foldLeft(cntAndMax) { case ((cnt, max), h) =>
      if(h >= max) (cnt+1, Math.max(max, h)) else (cnt, max)
    }._1
  }

  println(solve())

}

