import java.util.Scanner;

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

        int input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

        System.out.println(oceanView);
    }
} 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 input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

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

        int input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

        System.out.println(oceanView);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        int input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

        System.out.println(oceanView);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int input_int[] = new int[n]; input_int new int[n] n int oceanView = 0; oceanView 0 int curMax = 0; curMax 0 for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        } {
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        } input_int[i] = scanner.nextInt() input_int[i] input_int i scanner.nextInt() scanner.nextInt scanner curMax = Math.max(curMax, input_int[i]) curMax Math.max(curMax, input_int[i]) Math.max Math curMax input_int[i] input_int i if(input_int[i] == curMax) oceanView++; input_int[i] == curMax input_int[i] input_int i curMax oceanView++ oceanView scanner.close() scanner.close scanner System.out.println(oceanView) System.out.println System.out System System.out oceanView String args[] args public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        int input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

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

        int input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

        System.out.println(oceanView);
    }
} 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 input_int[] = new int[n];
        int oceanView = 0;
        int curMax = 0;
        for(int i = 0; i < n; i++){
            input_int[i] = scanner.nextInt();
            curMax = Math.max(curMax, input_int[i]);
            if(input_int[i] == curMax) oceanView++;
        }
        scanner.close();

        System.out.println(oceanView);
    }
}
