import scala.io.StdIn

object GreatOcianView extends App {
  val N  = StdIn.readLine().split(" ").map(_.toInt).head
  val a  = StdIn.readLine().split(" ").map(_.toInt)

  def solve(a: Array[Int], N: Int): Int = {
    val max = a.head
    var cnt = 1
    a.tail.foreach {x =>

      if (x >= max) {
        cnt = cnt + 1
      }
    }
    cnt
  }

  println(solve(a, N))
}
  

