fun main() {
    val len = readLine()!!.toInt()
    val lines = readLine()!!.split(" ").map {it.toInt()}

    var count = 0

    for (i in 0 until len) {
        if (i == 0) {
            count++
            continue
        }

        if (lines.subList(0, i).max()!! <= lines[i]) {
            count++
        }
    }
    print(count)
}