import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	}	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	}	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int highest = 0; highest 0 int count = 0; count 0 for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		} {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		} int heigh = sc.nextInt(); heigh sc.nextInt() sc.nextInt sc if (highest <= heigh) {
				highest = heigh;
				count++;				
			} highest <= heigh highest heigh {
				highest = heigh;
				count++;				
			} highest = heigh highest heigh count++ count System.out.print(count) System.out.print 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 num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	}	
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	}	
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int highest = 0;
		int count = 0;
		
		for(int i = 0; i < num; i++) {
			int heigh = sc.nextInt();
			if (highest <= heigh) {
				highest = heigh;
				count++;				
			}
		}
		
		System.out.print(count);
	}	
}