fun main(args: Array<String>) {
    getInputIntList()
    var second: List<Int> = getInputIntList()

    var count = 0;
    var max = 0
    second.forEach {
        if (it >= max) {
            count++
            max = it
        }
    }
    println(count)
}

fun getInputIntList() : List<Int> {
    val str = readLine()!!.toString()
    return str.split(Regex("\\s+")).map{b -> Integer.parseInt(b)}
}