import java.util.*;
public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	}

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc int n[] = new int [input]; n new int [input] input for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		} int i=0 ; int i=0 ; i 0 i<input i input i++ i++ i {
			int v = sc.nextInt();
			n[i]=v;
		} {
			int v = sc.nextInt();
			n[i]=v;
		} int v = sc.nextInt(); v sc.nextInt() sc.nextInt sc n[i]=v n[i] n i v int count = 0; count 0 int max = 0; max 0 for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		} int i=0 ; int i=0 ; i 0 i<input i input i++ i++ i {
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		} {
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		} if(max<=n[i]){
				max = n[i];
				count +=1;
			} max<=n[i] max n[i] n i {
				max = n[i];
				count +=1;
			} max = n[i] max n[i] n i count +=1 count 1 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 input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	}

} public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int input = sc.nextInt();
		int n[] = new int [input];
		for (int i=0 ; i<input ; i++ ){
			int v = sc.nextInt();
			n[i]=v;
		}
		int count = 0;
		int max = 0;
		for (int i=0 ; i<input ; i++ ){
			if(max<=n[i]){
				max = n[i];
				count +=1;
			}
		}
		System.out.println(count);
		
	}

}