import java.util.Scanner

object Main extends App  {
  val sc = new Scanner(System.in)
  val n  = sc.nextInt
  val hl = List.fill(n)(sc.nextInt)

  val res = hl.foldLeft((0, 0)){case ((count,hMax),h) =>
      if (h >= hMax) (count + 1, h)
      else (count, hMax)
  }._1

  println(res)

}
