import java.util.Scanner;

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

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

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

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int max = 0; max 0 int cnt = 0; cnt 0 for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        } {
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        } int tmp = scanner.nextInt(); tmp scanner.nextInt() scanner.nextInt scanner if(max <= tmp){
                cnt++;
                max = tmp;
            } max <= tmp max tmp {
                cnt++;
                max = tmp;
            } cnt++ cnt max = tmp max tmp System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    }
} Main
import java.util.Scanner;

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

        int max = 0;
        int cnt = 0;

        for(int i=0; i<N; i++){
            int tmp = scanner.nextInt();
            if(max <= tmp){
                cnt++;
                max = tmp;
            }
        }

        System.out.println(cnt);

    }
}
