import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int n;
    static int[] h;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    // input
    static int n;
    static int[] h;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main // input
    static int n; n static int[] h; h /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    } input {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc 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 sc.close() sc.close sc /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    } solve {
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    } int ans = 0; ans 0 int maxHeight = 0; maxHeight 0 for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        } {
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        } if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            } h[i]>=maxHeight h[i] h i maxHeight {
                maxHeight = h[i];
                ans++;
            } maxHeight = h[i] maxHeight h[i] h i ans++ ans System.out.println(ans) System.out.println System.out System System.out ans public static void main(String args[]) {

        input();

        solve();
    } main {

        input();

        solve();
    } input() input solve() solve String args[] args public class Main {

    // input
    static int n;
    static int[] h;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} public class Main {

    // input
    static int n;
    static int[] h;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int n;
    static int[] h;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        h = new int[n];
        for (int i=0;i<n;i++){
            h[i] = sc.nextInt();
        }
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans = 0;
        int maxHeight = 0;
        for(int i=0;i<n;i++){
            if (h[i]>=maxHeight) {
                maxHeight = h[i];
                ans++;
            }
        }
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
}
