
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int max_h = 0; max_h 0 int result = 0; result 0 for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        } {
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        } int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if(tmp>=max_h){
                max_h = tmp;
                result++;
            } tmp>=max_h tmp max_h {
                max_h = tmp;
                result++;
            } max_h = tmp max_h tmp result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    }
} Main

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int max_h = 0;
        int result = 0;
        for(int i=0;i<n;i++){
            int tmp = sc.nextInt();
            if(tmp>=max_h){
                max_h = tmp;
                result++;
            }
        }

        System.out.println(result);
    }
}