import scala.io.{StdIn => in}

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

  var cnt = 0
  var max = 0
  for(i <- 0 until n) {
    if(h(i) >= max) {
      cnt += 1
    }
    max = h(i) max max
  }

  val ans = cnt
  println(ans)
}