import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n, ans;
		List<Integer> heights = new ArrayList<>();
		
		Scanner scanner = new Scanner(System.in);
		
		n = scanner.nextInt();
		
		for (int i = 0; i < n; i++) {
			heights.add(scanner.nextInt()); 
		}
		scanner.close();
		
		int nW, nS = 0;
		boolean higher = true;
		ans = 1;
		
		for (int j = n - 1; 1 <= j; j--) {
			nS = heights.get(j);
			
			for (int k = 0; k <= j -1; k++) {
				if (higher) {
					nW = heights.get(k);
					if (nW > nS) {
						higher = false;
					}
				}
			}
			if (higher) {
				ans++;
			}
			higher = true;
		}
		System.out.println(ans);
		
	}
}

/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