import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		System.out.println(count);
	}
} 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[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		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[] ary = new int[n]; ary new int[n] n int highest = 0; highest 0 int count =0; count 0 for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		} {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		} ary[i] = sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			} ary[i] >= highest ary[i] ary i highest {
				count++;
				highest = ary[i];
			} count++ count highest = ary[i] highest ary[i] ary i 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[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		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[] ary = new int[n];
		int highest = 0;
		int count =0;
		for(int i = 0; i < n; i++) {
			ary[i] = sc.nextInt();
			if(ary[i] >= highest) {
				count++;
				highest = ary[i];
			}
		}
		System.out.println(count);
	}
}
