using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static string InputPattern = "Input1";

    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();

        if (InputPattern == "Input1") {
            WillReturn.Add("4");
            WillReturn.Add("6 5 6 8");
            //3
        }
        else if (InputPattern == "Input2") {
            WillReturn.Add("5");
            WillReturn.Add("4 5 3 5 4");
            //3
        }
        else if (InputPattern == "Input3") {
            WillReturn.Add("5");
            WillReturn.Add("9 5 6 8 4");
            //1
        }
        else {
            string wkStr;
            while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        }
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();

        int[] HArr = InputList[1].Split(' ').Select(X => int.Parse(X)).ToArray();

        int CurrMax = int.MinValue;
        int Answer = 0;
        foreach (int EachInt in HArr) {
            if (CurrMax <= EachInt) {

                Answer++;
                CurrMax = EachInt;
            }
        }
        Console.WriteLine(Answer);
    }
}
