package main

import "fmt"

func main() {

  var n int
  fmt.Scan(&n)
  list := make([]int,n)
  for i := 0 ; i< n; i++ {
    fmt.Scan(&list[i])
  }
  
  var count = 1
  for i:= 1; i< n; i++ {
    if list[i] >= list[0] && list[i] >= list[i-1] {
      count ++;
    }  
  }
  fmt.Print(count)
  
}

