import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				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 [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		}

		System.out.println(answer);

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		}

		System.out.println(answer);

	} main {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				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 [] map = new int [N]; map new int [N] N for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			map[i] = sc.nextInt();
		} {
			map[i] = sc.nextInt();
		} map[i] = sc.nextInt() map[i] map i sc.nextInt() sc.nextInt sc int H1 = map[0]; H1 map[0] map 0 int max = 0; max 0 int answer = 0; answer 0 for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		} {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		} if(max <= map[j]) {
				max = map[j];
				answer++;
			} max <= map[j] max map[j] map j {
				max = map[j];
				answer++;
			} max = map[j] max map[j] map j 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 [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				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 [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				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 [] map = new int [N];
		for(int i = 0; i < N ; i++) {
			map[i] = sc.nextInt();
		}
		int H1 = map[0];
		int max = 0;
		int answer = 0;


		for(int j = 0; j < N; j++) {
			if(max <= map[j]) {
				max = map[j];
				answer++;
			}
		}

		System.out.println(answer);

	}

}
