import java.util.Scanner

val sc = Scanner(System.`in`)
val n = sc.nextInt()

fun main(args: Array<String>) {
    var tmp = 0
    var total = 0
    for (i in 0 until n) {
        val h = sc.nextInt()
        if (h >= tmp) {
            tmp = h
            total++
        }
    }
    print(total)
}