import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	} main {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int answer = 0; answer 0 int max = 0; max 0 for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		} int i = N; int i = N; i N i > 0 i 0 i-- i-- i {
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		} {
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		} int H = scanner.nextInt(); H scanner.nextInt() scanner.nextInt scanner if (H >= max) {
				max = H;
				answer = answer + 1;
			} H >= max H max {
				max = H;
				answer = answer + 1;
			} max = H max H answer = answer + 1 answer answer + 1 answer 1 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int answer = 0;
		int max = 0;
		
		for (int i = N; i > 0; i-- ){
			
			int H = scanner.nextInt();
			if (H >= max) {
				max = H;
				answer = answer + 1;
			}
		}
		System.out.println(answer);
	}
}