
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int num = scan.nextInt();
		int[] height = new int[num];
		
		for (int i = 0; i < num; i++) {
			height[i] = scan.nextInt();
		}
		
		int count = 1;
		for (int i = 1; i < num; i++) {
			if (height[i - 1] > height[i]) {
				continue;
			}
			
			if (height[0] <= height[i]) {
				count++;
			}
		}
		
		System.out.println(count);
		scan.close();
	}
}