import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int H[] = new int[N]; H new int[N] N int maxHeight = Integer.MIN_VALUE; maxHeight Integer.MIN_VALUE Integer Integer.MIN_VALUE int answer = 0; answer 0 for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		} {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			} maxHeight <= H[i] maxHeight H[i] H i {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			} maxHeight = Math.max(maxHeight, H[i]) maxHeight Math.max(maxHeight, H[i]) Math.max Math maxHeight H[i] H i answer++ answer 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 sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int H[] = new int[N];
		int maxHeight = Integer.MIN_VALUE;
		int answer = 0;

		for (int i = 0; i < N; i++) {
			H[i] = sc.nextInt();
			if (maxHeight <= H[i]) {
				maxHeight = Math.max(maxHeight, H[i]);
				answer++;
			}
		}

		System.out.println(answer);
	}
}
