import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	}

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

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	} main {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int hotel = sc.nextInt(); hotel sc.nextInt() sc.nextInt sc ArrayList<Integer> mountains = new ArrayList<Integer>(); mountains new ArrayList<Integer>() for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		} int i = 0; int i = 0; i 0 i < hotel i hotel i++ i++ i {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		} {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		} final int mountain = sc.nextInt(); mountain sc.nextInt() sc.nextInt sc mountains.add(mountain) mountains.add mountains mountain int firstHotel = mountains.get(0); firstHotel mountains.get(0) mountains.get mountains 0 int largestHotel = mountains.get(0); largestHotel mountains.get(0) mountains.get mountains 0 int result = 0; result 0 for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		} int j = 1; int j = 1; j 1 j < hotel j hotel j++ j++ j {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		} {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		} if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			} firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j) firstHotel <= mountains.get(j) firstHotel mountains.get(j) mountains.get mountains j largestHotel <= mountains.get(j) largestHotel mountains.get(j) mountains.get mountains j {
				largestHotel = mountains.get(j);
				result++;
			} largestHotel = mountains.get(j) largestHotel mountains.get(j) mountains.get mountains j result++ result System.out.println(result + 1) System.out.println System.out System System.out result + 1 result 1 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int hotel = sc.nextInt();

		ArrayList<Integer> mountains = new ArrayList<Integer>();

		for (int i = 0; i < hotel; i++) {
			final int mountain = sc.nextInt();
			mountains.add(mountain);
		}

		int firstHotel = mountains.get(0);
		int largestHotel = mountains.get(0);
		int result = 0;
		for (int j = 1; j < hotel; j++) {
			if (firstHotel <= mountains.get(j) && largestHotel <= mountains.get(j)) {
				largestHotel = mountains.get(j);
				result++;
			}

		}

		System.out.println(result + 1);

	}

}
