import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	}
} 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 h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int h =sc.nextInt(); h sc.nextInt() sc.nextInt sc int count=1; count 1 for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		} int i=1; int i=1; i 1 i<N i N i++ i++ i {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		} {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		} int j=sc.nextInt(); j sc.nextInt() sc.nextInt sc if(j>=h) {
				count++;
				h=j;
			} j>=h j h {
				count++;
				h=j;
			} count++ count h=j h j System.out.println(count) System.out.println System.out System System.out count sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int h =sc.nextInt();
		int count=1;
		
		for(int i=1;i<N;i++) {
			int j=sc.nextInt();
			if(j>=h) {
				count++;
				h=j;
			}
		}
		System.out.println(count);
		sc.close();
	}
}
