import scala.io.StdIn
import scala.math._

object Main {

  // (i番目までの山の最大の高さ、i番目の山までで海が見える山の数)
  type State = Tuple2[Int, Int]

  def main(args: Array[String]): Unit = {
    val n = StdIn.readLine.toInt
    val hs = StdIn.readLine.split(" ").map(_.toInt)

    println(hs.foldLeft((0, 0): State)((state, b) => if (b >= state._1) (b, state._2 + 1) else state)._2)
  }
}