import java.util.*;

public class Main {
	public static int n, f;
	public static List<Integer> list;
	  public static void main(String[] args) {
		list = new ArrayList<>();
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		f = sc.nextInt();
		for(int i = 0; i < n-1; i++) {
			list.add(sc.nextInt());
		}
		
		int c = 0;
		int max = f;
		for(Integer i:list) {
			if(i >= max) {
				c++;
				max = i;
			}
		}
		System.out.println(c+1);
	  }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz