import scala.io.StdIn

object Main extends App {
  val num = StdIn.readInt()
  val input = StdIn.readLine().map(_.toInt)
  var pre, max, count = 0
  input.foreach(chk(_))
  println(count)

  def chk(v:Int): Unit = 
    if (v >= max) {
      count += 1
      max = v
    }
}