import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        int ans = 1;
        int highest = sc.nextInt();
        for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        int ans = 1;
        int highest = sc.nextInt();
        for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        int ans = 1;
        int highest = sc.nextInt();
        for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        int ans = 1;
        int highest = sc.nextInt();
        for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int ans = 1; ans 1 int highest = sc.nextInt(); highest sc.nextInt() sc.nextInt sc for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        } int i = 1; int i = 1; i 1 i < num i num i++ i++ i {
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        } {
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        } int height = sc.nextInt(); height sc.nextInt() sc.nextInt sc if(height >= highest){
                ans++;
                highest = height;
            } height >= highest height highest {
                ans++;
                highest = height;
            } ans++ ans highest = height highest height System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num = sc.nextInt();

        int ans = 1;
        int highest = sc.nextInt();
        for(int i = 1; i < num; i++){
            int height = sc.nextInt();
            if(height >= highest){
                ans++;
                highest = height;
            }
        }

        System.out.println(ans);
    }
}