import sequtils, strutils

let
  n = stdin.readLine.parseInt
  h = stdin.readLine.split.map parseInt
var
  ans = 1
  under = h[0]

for hi in h:
  if hi >= under:
    ans.inc
  under = max(under, hi)

echo ans