import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	} main {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	} Scanner sc =  new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int maxHeight = sc.nextInt(); maxHeight sc.nextInt() sc.nextInt sc int count = 1; count 1 for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		} int i=1; int i=1; i 1 i<num i num i++ i++ i {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		} {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		} int me = sc.nextInt(); me sc.nextInt() sc.nextInt sc if(maxHeight <= me) {
				count++;
				maxHeight = me;
			} maxHeight <= me maxHeight me {
				count++;
				maxHeight = me;
			} count++ count maxHeight = me maxHeight me System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int num = sc.nextInt();
		int maxHeight = sc.nextInt();
		int count = 1;
		for(int i=1;i<num;i++) {
			int me = sc.nextInt();
			if(maxHeight <= me) {
				count++;
				maxHeight = me;
			}
		}
		System.out.println(count);
	}
}