import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

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

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int[] height = new int[num];
		
		for (int i = 0; i < num; i++) {
			height[i] = scan.nextInt();
		}
		
		int count = 1;
		int highest = height[0];
		for (int i = 1; i < num; i++) {
			if (highest <= height[i]) {
				highest = height[i];
				count++;
			}
		}
		
		System.out.println(count);
		scan.close();
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int[] height = new int[num];
		
		for (int i = 0; i < num; i++) {
			height[i] = scan.nextInt();
		}
		
		int count = 1;
		int highest = height[0];
		for (int i = 1; i < num; i++) {
			if (highest <= height[i]) {
				highest = height[i];
				count++;
			}
		}
		
		System.out.println(count);
		scan.close();
	} main {

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

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

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int[] height = new int[num];
		
		for (int i = 0; i < num; i++) {
			height[i] = scan.nextInt();
		}
		
		int count = 1;
		int highest = height[0];
		for (int i = 1; i < num; i++) {
			if (highest <= height[i]) {
				highest = height[i];
				count++;
			}
		}
		
		System.out.println(count);
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int[] height = new int[num];
		
		for (int i = 0; i < num; i++) {
			height[i] = scan.nextInt();
		}
		
		int count = 1;
		int highest = height[0];
		for (int i = 1; i < num; i++) {
			if (highest <= height[i]) {
				highest = height[i];
				count++;
			}
		}
		
		System.out.println(count);
		scan.close();
	}
}