import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		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 n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int i i h; h int ans = 0; ans 0 for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		} {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		} h = scan.nextInt() h scan.nextInt() scan.nextInt scan if(h >= max)
				ans++; h >= max h max ans++ ans max = Math.max(max, h) max Math.max(max, h) Math.max Math max h 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 n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		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 n = scan.nextInt();

		int max = Integer.MIN_VALUE;
		int i,h;
		int ans = 0;
		for(i = 0; i < n; i++) {
			h = scan.nextInt();
			if(h >= max)
				ans++;
			max = Math.max(max, h);
		}

		System.out.println(ans);
	}
}
