import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	} main {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int max = 0; max 0 int answer = 0; answer 0 for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		} {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		} int H = scan.nextInt(); H scan.nextInt() scan.nextInt scan if (H >= max) {
				answer++;
				max = H;
			} H >= max H max {
				answer++;
				max = H;
			} answer++ answer max = H max H 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 scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int max = 0;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			int H = scan.nextInt();
			if (H >= max) {
				answer++;
				max = H;
			}
		}

		System.out.println(answer);
 	}
}