
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws Exception {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int ans=0;
		int max=0;
		for(int i=0;i<a;i++) {
			int b=scan.nextInt();
			if(max<=b) {
				max=b;
				ans++;
			}
		}
		System.out.println(ans);
	}
}