import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc: Scanner = new Scanner(System.in)
    sc.nextLine()
    //    check the difference between array and list
    val heights: Array[Int] = sc.nextLine().map { s => s.toInt }.toArray

    @annotation.tailrec
    def go(n: Int, maxHeight: Int, niceViewsNumber: Int): Int = {
      if (n == heights.length)
        niceViewsNumber
      else {
        if (heights(n) >= maxHeight) {
          go(n + 1, heights(n), niceViewsNumber + 1)
        } else {
          go(n + 1, maxHeight, niceViewsNumber)
        }
      }
    }

    println(go(0, 0, 0))
  }
}