import java.awt.Polygon;
import java.awt.geom.Area;
import java.awt.geom.PathIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	}
} import java.awt.Polygon; Polygon java.awt import java.awt.geom.Area; Area java.awt.geom import java.awt.geom.PathIterator; PathIterator java.awt.geom import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception
	{
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	} run {
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	} Scanner file = new Scanner(System.in); file new Scanner(System.in) int N = file.nextInt(); N file.nextInt() file.nextInt file int[] ints = new int[N]; ints new int[N] N for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt(); int i = 0; int i = 0; i 0 i<ints.length i ints.length ints ints.length i++ i++ i ints[i] = file.nextInt(); ints[i] = file.nextInt() ints[i] ints i file.nextInt() file.nextInt file int max = -1; max -1 1 int ans = 0; ans 0 for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		} int i = 0; int i = 0; i 0 i< N i N i++ i++ i {
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		} {
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		} if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			} ints[i] >=max ints[i] ints i max {
				max = ints[i];
				ans++;
			} max = ints[i] max ints[i] ints i ans++ ans System.out.println(ans) System.out.println System.out System System.out ans public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	}
} public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	}
} Main
import java.awt.Polygon;
import java.awt.geom.Area;
import java.awt.geom.PathIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] ints = new int[N];
		for(int i = 0;i<ints.length;i++)
			ints[i] = file.nextInt();
		int max = -1;
		int ans = 0;
		for(int i = 0;i< N;i++)
		{
			if(ints[i] >=max)
			{
				max = ints[i];
				ans++;
			}
		}
		System.out.println(ans);
	}
}
