using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AtCorder
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadLine();
            var nums = Console.ReadLine().Split(' ').Select(int.Parse);
            var ret = nums.Aggregate(new { Cnt = 0, Height = 0 }, (n, p) => (n.Height <= p) ? new { Cnt = n.Cnt + 1, Height = p } : n).Cnt;
            Console.WriteLine(ret);
        }
    }
}
