package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func nextInt() int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func nextStr() string {
	sc.Scan()
	s := sc.Text()
	return s
}

func getRuneAt(s string, i int) rune {
	rs := []rune(s)
	return rs[i]
}

func main() {
	sc.Split(bufio.ScanWords)
	n := nextInt()
	var moutains []int
	moutains = make([]int, 40)

	var count = 0
	for index := 0; index < n; index++ {
		moutains[index] = nextInt()
		if index >= 2 {
			if Count(moutains[index], moutains[0:index-1]) {
				count++
			}
		}
	}

	fmt.Print(count + 1)
}

func Count(hi int, mountains []int) bool {
	for i := 0; i < len(mountains); i++ {
		if hi < mountains[i] {
			return false
		}
	}
	return true
}