import java.util.*;
 
public class Main{
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	}
} import java.util.*; util.* java public class Main{
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max=0; max 0 int prt=0; prt 0 for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		} {
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		} int h =sc.nextInt(); h sc.nextInt() sc.nextInt sc if(h>=max){
				max=h;
				prt++;
			} h>=max h max {
				max=h;
				prt++;
			} max=h max h prt++ prt System.out.print(prt) System.out.print System.out System System.out prt String[] args args public class Main{
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	}
} public class Main{
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	}
} Main
import java.util.*;
 
public class Main{
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max=0;
		int prt=0;
		for(int i=0;i<n;i++){
			int h =sc.nextInt();
			if(h>=max){
				max=h;
				prt++;
			}
		}
		System.out.print(prt);
	}
}