let n = Scanf.scanf " %d" (+) 0
let hs = Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let _ = Array.fold_left (fun (c, m) h -> if h >= m then c + 1, h else c, m) (0, 0) hs |> fst |> Printf.printf "%d\n"