import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int max = -1,ans=0;
        for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int max = -1,ans=0;
        for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int max = -1,ans=0;
        for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        }
        System.out.println(ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int max = -1,ans=0;
        for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        }
        System.out.println(ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int max = -1 max -1 1 ans=0; ans 0 for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        } {
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        } int h = scanner.nextInt(); h scanner.nextInt() scanner.nextInt scanner if(max <= h){
                max = h;
                ans++;
            } max <= h max h {
                max = h;
                ans++;
            } max = h max h ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int max = -1,ans=0;
        for(int i=0;i<n;i++){
            int h = scanner.nextInt();
            if(max <= h){
                max = h;
                ans++;
            }
        }
        System.out.println(ans);
    }
}