using System;
using System.Text;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
class Problem
{
    static void Main()
    {
        //--------------------------------input--------------------------------//

        int n = Convert.ToInt32( Console.ReadLine() );
        var a = Array.ConvertAll( Console.ReadLine().Split(), Convert.ToInt32 );

        //--------------------------------solve--------------------------------//

        int min = a[0];
        int kq = 0;
        for(int i = 0 ; i < n ; i++)
            if(a[i] >= a[0])
            {
                kq++;
                min = a[i];
            }
        Console.WriteLine( kq );
    }




}