import scala.io.{StdIn => in}

object Main extends App {
  val n = in.readInt
  val h = in.readLine.split(" ").map(_.toInt)

  val ans = h./:(0,0) {
    case ((acc, max), i) => {
      if(i >= max) (acc+1, i)
      else (acc, max)
    }
  }._1

  println(ans)
}