import java.util.Scanner;

public class Main {

	private static String halfSpace = " ";

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	private static String halfSpace = " ";

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	}

} Main private static String halfSpace = " "; halfSpace " " public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	} main {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String strNumOfMountain = scanner.nextLine(); strNumOfMountain scanner.nextLine() scanner.nextLine scanner int numOfMountain = Integer.parseInt(strNumOfMountain); numOfMountain Integer.parseInt(strNumOfMountain) Integer.parseInt Integer strNumOfMountain String tmp = scanner.nextLine(); tmp scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner String[] strTmp = tmp.split(halfSpace); strTmp tmp.split(halfSpace) tmp.split tmp halfSpace int[] heights = new int[numOfMountain]; heights new int[numOfMountain] numOfMountain for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		} int i = 0; int i = 0; i 0 i < numOfMountain i numOfMountain i++ i++ i {
			heights[i] = Integer.parseInt(strTmp[i]);
		} {
			heights[i] = Integer.parseInt(strTmp[i]);
		} heights[i] = Integer.parseInt(strTmp[i]) heights[i] heights i Integer.parseInt(strTmp[i]) Integer.parseInt Integer strTmp[i] strTmp i int max = heights[0]; max heights[0] heights 0 int NumOfCanSeeOcean = 1; NumOfCanSeeOcean 1 for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		} int i = 1; int i = 1; i 1 i < numOfMountain i numOfMountain i++ i++ i {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		} {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		} if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			} max <= heights[i] max heights[i] heights i {
				max = heights[i];
				NumOfCanSeeOcean++;
			} max = heights[i] max heights[i] heights i NumOfCanSeeOcean++ NumOfCanSeeOcean System.out.println(NumOfCanSeeOcean) System.out.println System.out System System.out NumOfCanSeeOcean String[] args args public class Main {

	private static String halfSpace = " ";

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	}

} public class Main {

	private static String halfSpace = " ";

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	}

} Main
import java.util.Scanner;

public class Main {

	private static String halfSpace = " ";

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		String strNumOfMountain = scanner.nextLine();

		int numOfMountain = Integer.parseInt(strNumOfMountain);

		String tmp = scanner.nextLine();

		scanner.close();

		String[] strTmp = tmp.split(halfSpace);

		int[] heights = new int[numOfMountain];

		for(int i = 0; i < numOfMountain; i++) {
			heights[i] = Integer.parseInt(strTmp[i]);
		}

		int max = heights[0];
		int NumOfCanSeeOcean = 1;

		for(int i = 1; i < numOfMountain; i++) {
			if(max <= heights[i]) {
				max = heights[i];
				NumOfCanSeeOcean++;
			}
		}

		System.out.println(NumOfCanSeeOcean);

	}

}