import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    } main {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] b=new int[a]; b new int[a] a int count=0; count 0 int answer=0; answer 0 for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        } {
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        } b[i]=sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc if(count<=b[i]){
                count=b[i];
                answer++;
            } count<=b[i] count b[i] b i {
                count=b[i];
                answer++;
            } count=b[i] count b[i] b i answer++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int[] b=new int[a];
        int count=0;
        int answer=0;
        for(int i=0;i<a;i++){
            b[i]=sc.nextInt();
            if(count<=b[i]){
                count=b[i];
                answer++;
            }
        }
        System.out.println(answer);
    }
}
