import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int p = scan.nextInt(); p scan.nextInt() scan.nextInt scan int ans=0; ans 0 int mem=0; mem 0 for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		} int i=0; int i=0; i 0 i<p i p i++ i++ i {
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		} {
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		} int q = scan.nextInt(); q scan.nextInt() scan.nextInt scan if(mem<=q){
				ans++;
				mem=q;
			} mem<=q mem q {
				ans++;
				mem=q;
			} ans++ ans mem=q mem q System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int ans=0;
		int mem=0;
		for(int i=0;i<p;i++){
			int q = scan.nextInt();
			if(mem<=q){
				ans++;
				mem=q;
			}
		}
		System.out.println(ans);
	}
}