
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] montains = new int[N + 1]; montains new int[N + 1] N + 1 N 1 int westMost = 0; westMost 0 int ans = 0; ans 0 for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		} {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		} montains[i] = scanner.nextInt() montains[i] montains i scanner.nextInt() scanner.nextInt scanner if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			} montains[i] >= westMost montains[i] montains i westMost {
				westMost = montains[i];
				ans++;
			} westMost = montains[i] westMost montains[i] montains i ans++ ans System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] montains = new int[N + 1];
		int westMost = 0;
		int ans = 0;
		for (int i = 1; i <= N; i++) {
			montains[i] = scanner.nextInt();
			if(montains[i] >= westMost) {
				westMost = montains[i];
				ans++;
			}
		}
		System.out.println(ans);
		scanner.close();
	}
}
