package main

import (
	"fmt"
	"strconv"
	"strings"
)

func main() {
	_ = getIntFromStdin()
	hotelHeigts := getNumbersFromStdin(" ")

	hotelsOfBeAbleToSeeOcean := 0
	for i := len(hotelHeigts) - 1; i >= 0; i-- {
		currentHeight := hotelHeigts[i]

		if i <= 0 {
			hotelsOfBeAbleToSeeOcean = hotelsOfBeAbleToSeeOcean + 1
			break
		}

		currentHotelCanNotSeeOcean := false
		for prevIndex, prevHeight := range hotelHeigts {
			if prevIndex >= i {
				break
			}

			if currentHeight <= prevHeight {
				currentHotelCanNotSeeOcean = true
			}
		}

		if currentHotelCanNotSeeOcean == false {
			hotelsOfBeAbleToSeeOcean = hotelsOfBeAbleToSeeOcean + 1
		}
	}

	fmt.Println(hotelsOfBeAbleToSeeOcean)
}

func getIntFromStdin() int {
	str := ""

	fmt.Scanln(&str)

	num, err := strconv.Atoi(str)
	if err != nil {
		panic("")
	}

	return num
}

func getNumbersFromStdin(splitter string) []int {
	str := ""

	fmt.Scanln(&str)

	strArr := strings.Split(str, splitter)

	for _, str := range strArr {
		fmt.Println(str)
	}

	numArr := []int{}
	for _, s := range strArr {
		num, err := strconv.Atoi(s)

		if err != nil {
			panic("String parsing was denided")
		}

		numArr = append(numArr, num)
	}

	return numArr
}
