import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int height = 0;
		int max = 0;
		int seen = 0;
		
		for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		}
			System.out.println(seen);
	}
} import java.util.Scanner; Scanner java.util class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int height = 0;
		int max = 0;
		int seen = 0;
		
		for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		}
			System.out.println(seen);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int height = 0;
		int max = 0;
		int seen = 0;
		
		for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		}
			System.out.println(seen);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int height = 0;
		int max = 0;
		int seen = 0;
		
		for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		}
			System.out.println(seen);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int height = 0; height 0 int max = 0; max 0 int seen = 0; seen 0 for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		} {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		} height = sc.nextInt() height sc.nextInt() sc.nextInt sc if(max <= height) {
				seen ++;
				max = height;
			} max <= height max height {
				seen ++;
				max = height;
			} seen ++ seen max = height max height System.out.println(seen) System.out.println System.out System System.out seen String[] args args
import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int height = 0;
		int max = 0;
		int seen = 0;
		
		for(int i = 1; i <= N; i++) {
			height = sc.nextInt();
			if(max <= height) {
				seen ++;
				max = height;
			}
		}
			System.out.println(seen);
	}
}