import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] mountain=new int[n];
        for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        }
        int total=0;
        int max=0;
        for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        }
        System.out.println(total);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] mountain=new int[n];
        for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        }
        int total=0;
        int max=0;
        for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        }
        System.out.println(total);
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] mountain=new int[n];
        for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        }
        int total=0;
        int max=0;
        for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        }
        System.out.println(total);
    } main {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] mountain=new int[n];
        for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        }
        int total=0;
        int max=0;
        for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        }
        System.out.println(total);
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int[] mountain=new int[n]; mountain new int[n] n for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            mountain[i]=scn.nextInt();
        } {
            mountain[i]=scn.nextInt();
        } mountain[i]=scn.nextInt() mountain[i] mountain i scn.nextInt() scn.nextInt scn int total=0; total 0 int max=0; max 0 for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        } {
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        } if(mountain[i]>=max){
                total++;
                max=mountain[i];
            } mountain[i]>=max mountain[i] mountain i max {
                total++;
                max=mountain[i];
            } total++ total max=mountain[i] max mountain[i] mountain i System.out.println(total) System.out.println System.out System System.out total String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] mountain=new int[n];
        for(int i=0;i<n;i++){
            mountain[i]=scn.nextInt();
        }
        int total=0;
        int max=0;
        for(int i=0;i<n;i++){
            if(mountain[i]>=max){
                total++;
                max=mountain[i];
            }
        }
        System.out.println(total);
    }
}