package main

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

var s = bufio.NewScanner(os.Stdin)

func getInt() int {
	s.Scan()
	n, _ := strconv.Atoi(s.Text())
	return n
}

func main() {
	s.Split(bufio.ScanWords)
	n := getInt()

	h := make([]int, n)
	for i := 0; i < n; i++ {
		h[i] = getInt()
	}
	fmt.Println(h)
	count := 0
	ans := 0
	for i := 1; i < n; i++ {
		for j := 0; j < i; j++ {
			if h[i] >= h[j] {

			} else {
				count++
				break
			}
		}
		if count == 0 {
			ans++
		}
		count = 0
	}
	fmt.Println(ans + 1)
}
