import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		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 inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		System.out.println(count);
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		System.out.println(count);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		System.out.println(count);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int inputN = sc.nextInt(); inputN sc.nextInt() sc.nextInt sc int inputH = sc.nextInt(); inputH sc.nextInt() sc.nextInt sc int count = 1; count 1 int highest = inputH; highest inputH for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		} int i = 0 ; int i = 0 ; i 0 i < inputN -1 i inputN -1 inputN 1 i++ i++ i {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		} {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		} inputH = sc.nextInt() inputH sc.nextInt() sc.nextInt sc if(inputH >= highest) {
				count++;
				highest = inputH;
			} inputH >= highest inputH highest {
				count++;
				highest = inputH;
			} count++ count highest = inputH highest inputH sc.close() sc.close sc 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 inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		System.out.println(count);
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		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 inputN = sc.nextInt();		
		int inputH = sc.nextInt();
		
		int count = 1;
		int highest = inputH;
		
		for(int i = 0 ; i < inputN -1 ; i++) {
			inputH = sc.nextInt();
			if(inputH >= highest) {
				count++;
				highest = inputH;
			}
		}
		sc.close();
		System.out.println(count);
		
	}
}