import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	}
}

//Arrays.sort(array, (a, b) -> Integer.compare(a[0], b[0]));

 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int count=1 count 1 max=sc.nextInt() max sc.nextInt() sc.nextInt sc buff; buff for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		} {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		} buff=sc.nextInt() buff sc.nextInt() sc.nextInt sc if(max<=buff) {
				count++;
				max=buff;
			} max<=buff max buff {
				count++;
				max=buff;
			} count++ count max=buff max buff 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 n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int count=1,max=sc.nextInt(),buff;

		for(int i=1;i<n;i++) {
			buff=sc.nextInt();
			if(max<=buff) {
				count++;
				max=buff;
			}
		}

		System.out.println(count);
	}
}

//Arrays.sort(array, (a, b) -> Integer.compare(a[0], b[0]));


