object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val H = in.map(_.split(' ').map(_.toInt)).tail.head

  var ret = 0
  H.foldLeft(0){ (a,e) =>
    if(a<=e) ret+=1
    Math.max(a,e)
  }
  println(ret)
}
