import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	} main {
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a sum=0; sum 0 a = sc.nextInt() a sc.nextInt() sc.nextInt sc int[] b = new int[a]; b new int[a] a for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			b[i] = sc.nextInt();
		} {
			b[i] = sc.nextInt();
		} b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc int max = b[0]; max b[0] b 0 for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		} {
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		} if(b[i]>=max)
				sum++; b[i]>=max b[i] b i max sum++ sum if(b[i]>max)
				max=b[i]; b[i]>max b[i] b i max max=b[i] max b[i] b i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	}
} Main
import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int a,sum=0;

		a = sc.nextInt();
		int[] b = new int[a];
		
		for(int i=0;i<a;i++)
		{
			b[i] = sc.nextInt();
		}
		int max = b[0];
		for(int i=0;i<a;i++)
		{
			if(b[i]>=max)
				sum++;
			if(b[i]>max)
				max=b[i];
		}
		
		System.out.println(sum);

	}
}