using System;
using System.Collections.Generic;
using static Exter;
using System.Linq;
using console = System.Console;

public class App
{
    public static void Main(string[] args)
    {
        read.ToString();
        int m = 0;
        
        cout = readarr.Where(w=>{
        if(w>=m)
        {
            m=w;
            return true;
        }
        return false;
        }).Count().ToString();
    }
}
public class Exter
{
    public static int Max(params int[] p)=>p.Max();
    public static short Max(params short[] p)=>p.Max();
    public static long Max(params long[] p)=>p.Max();
    public static string read
    {
        get
        {
            char c;
            string s = "";
            while(true)
            {
                c = console.ReadKey().KeyChar;
                if(c == ' '||c=='\n')
                    break;
                s += c;
            }
            return s;
        }
    }
    public static int readi
    {
        get
        {
            char c;
            string s = "";
            while(true)
            {
                c = console.ReadKey().KeyChar;
                if(c == ' '||c=='\n')
                    break;
                s += c;
            }
            return int.Parse(s);
        }
    }
    public static string cout
    {
        set
        {
            console.WriteLine(value);
        }
    }
    public static int[] preadarr;
    public static int[] readarr
    {
        get
        {
            preadarr = console.ReadLine().Split().Select(s=>int.Parse(s)).ToArray();
            return preadarr;
        }
    }
    public static long readl
    {
        get
        {
            char c;
            string s = "";
            while(true)
            {
                c = console.ReadKey().KeyChar;
                if(c == ' '||c=='\n')
                    break;
                s += c;
            }
            return long.Parse(s);
        }
    }
}