import java.util.*;

public class Main {
        public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        }

        }
 import java.util.*; util.* java public class Main {
        public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        }

        } Main public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        } main {
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                h[i] = sc.nextInt();
            } {
                h[i] = sc.nextInt();
            } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int max = h[0]; max h[0] h 0 int sum = 1; sum 1 for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            } int j=1; int j=1; j 1 j<n j n j++ j++ j {
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            } {
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            } if(h[j]>=max){
                    sum++;
                    max=h[j];
                } h[j]>=max h[j] h j max {
                    sum++;
                    max=h[j];
                } sum++ sum max=h[j] max h[j] h j System.out.println(sum) System.out.println System.out System System.out sum for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            } long k = 0; long k = 0; k 0 k<100000000 k 100000000 k++ k++ k {
                sum=sum*2;
                sum=sum/2;
            } {
                sum=sum*2;
                sum=sum/2;
            } sum=sum*2 sum sum*2 sum 2 sum=sum/2 sum sum/2 sum 2 String[] args args public class Main {
        public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        }

        } public class Main {
        public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        }

        } Main
import java.util.*;

public class Main {
        public static void main(String[] args){
            Scanner sc =new Scanner(System.in);
            int n = sc.nextInt();
            int[] h = new int[n];
            for(int i=0;i<n;i++){
                h[i] = sc.nextInt();
            }
            int max = h[0];
            int sum = 1;
            for(int j=1;j<n;j++){
                if(h[j]>=max){
                    sum++;
                    max=h[j];
                }
            }
            System.out.println(sum);
            for(long k = 0;k<100000000;k++){
                sum=sum*2;
                sum=sum/2;
            }
        }

        }

