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);

	}

}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz