fun main(args: Array<String>) {
    var n = readLine()!!.toInt()
    val h = readLine()!!.split(" ")
    var count = 0
    var bo : Boolean

    for(i in 0 .. (n-1)){
        bo = false
        for(j in 0 .. (i-1)){
            if(h[j].toInt() > h[i].toInt()) bo = true
        }
        if(!bo)count++
    }
    println(count)
}
