import java.util.Scanner;

public class Main{

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    }
} import java.util.Scanner; Scanner java.util public class Main{

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    } main {
        Scanner scan = new Scanner(System.in);

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int min = scan.nextInt(); min scan.nextInt() scan.nextInt scan int count = 1; count 1 for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        } int i = 1; int i = 1; i 1 i < num i num i++ i++ i {
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        } {
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        } int temp = scan.nextInt(); temp scan.nextInt() scan.nextInt scan if(temp >= min){
                count++;
                min = temp;
            } temp >= min temp min {
                count++;
                min = temp;
            } count++ count min = temp min temp System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    }
} public class Main{

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    }
} Main
import java.util.Scanner;

public class Main{

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

        // input
        int num = scan.nextInt();
        int min = scan.nextInt();
        int count = 1;
        for(int i = 1; i < num; i++){
            int temp = scan.nextInt();
            if(temp >= min){
                count++;
                min = temp;
            }
        }

        // answer
        System.out.println(count);

    }
}