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

namespace ConsoleApp5
{

    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            string S = Console.ReadLine();
            string[] line = S.Split(' ');
            int ans = 0;
            int[] H = new int[N];
            int srh = 0;

            for(int i=0; i<N; i++)
            {
                H[i] = int.Parse(line[i]);
                if(H[i] >= srh)
                {
                    ans++;
                    srh = H[i];
                }
            }
            
            Console.WriteLine(ans);


        }
    }