import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	}
} 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 count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int count = 1; count 1 int max = sc.nextInt(); max sc.nextInt() sc.nextInt sc for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		} int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		} {
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		} int hotel = sc.nextInt(); hotel sc.nextInt() sc.nextInt sc if(hotel >= max) {
				count++;
				max = hotel;
			} hotel >= max hotel max {
				count++;
				max = hotel;
			} count++ count max = hotel max hotel System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	}
} 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 count = 1;
		int max = sc.nextInt();

		for(int i = 0; i < n-1; i++){
			int hotel = sc.nextInt();
			if(hotel >= max) {
				count++;
				max = hotel;
			}
		}

		System.out.println(count);
	}
}