object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)

    val N = sc.nextInt()
    val H = Array.fill(N)(sc.nextInt())

    var max = H.head
    var count = 1
    H.tail.foreach { h =>
      if (h >= max) {
        max = h
        count += 1
      }
    }
    println(count)
  }

}
