import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	}
} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	} main {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = Integer.valueOf(scn.nextLine()).intValue(); N Integer.valueOf(scn.nextLine()).intValue() Integer.valueOf(scn.nextLine()).intValue Integer.valueOf(scn.nextLine()) Integer.valueOf Integer scn.nextLine() scn.nextLine scn String line2[] = scn.nextLine().split(" "); line2 scn.nextLine().split(" ") scn.nextLine().split scn.nextLine() scn.nextLine scn " " int H[] = new int[N]; H new int[N] N for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			H[i] = Integer.valueOf(line2[i]).intValue();
		} {
			H[i] = Integer.valueOf(line2[i]).intValue();
		} H[i] = Integer.valueOf(line2[i]).intValue() H[i] H i Integer.valueOf(line2[i]).intValue() Integer.valueOf(line2[i]).intValue Integer.valueOf(line2[i]) Integer.valueOf Integer line2[i] line2 i int countOceanViewHotels = 1; countOceanViewHotels 1 int biggestHotelsHigh = H[0]; biggestHotelsHigh H[0] H 0 for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		} {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		} if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			} H[i] >= biggestHotelsHigh H[i] H i biggestHotelsHigh {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			} countOceanViewHotels++ countOceanViewHotels biggestHotelsHigh = H[i] biggestHotelsHigh H[i] H i System.out.println(countOceanViewHotels) System.out.println System.out System System.out countOceanViewHotels String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

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

public class Main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = Integer.valueOf(scn.nextLine()).intValue();
		String line2[] = scn.nextLine().split(" ");
		int H[] = new int[N];
		for(int i = 0;i < N;i++) {
			H[i] = Integer.valueOf(line2[i]).intValue();
		}

		// 一番西は絶対海が見えるから
		int countOceanViewHotels = 1;
		// 一番でかいホテルを記録していく
		int biggestHotelsHigh = H[0];
		for(int i = 1;i < N;i++) {
			if(H[i] >= biggestHotelsHigh) {
				countOceanViewHotels++;
				biggestHotelsHigh = H[i];
			}
		}

		System.out.println(countOceanViewHotels);
	}
}
