import java.util.Scanner;

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

        int n = Integer.parseInt(sc.nextLine());
        int[] array = new int[n];
        String[] input = sc.nextLine().split(" ");

        for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        }

        int count = 1;
        int nearbyHighest = array[0];
        
        for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        int[] array = new int[n];
        String[] input = sc.nextLine().split(" ");

        for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        }

        int count = 1;
        int nearbyHighest = array[0];
        
        for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        int[] array = new int[n];
        String[] input = sc.nextLine().split(" ");

        for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        }

        int count = 1;
        int nearbyHighest = array[0];
        
        for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        int[] array = new int[n];
        String[] input = sc.nextLine().split(" ");

        for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        }

        int count = 1;
        int nearbyHighest = array[0];
        
        for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int[] array = new int[n]; array new int[n] n String[] input = sc.nextLine().split(" "); input sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            array[i] = Integer.parseInt(input[i]);
        } {
            array[i] = Integer.parseInt(input[i]);
        } array[i] = Integer.parseInt(input[i]) array[i] array i Integer.parseInt(input[i]) Integer.parseInt Integer input[i] input i int count = 1; count 1 int nearbyHighest = array[0]; nearbyHighest array[0] array 0 for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        } int i=1; int i=1; i 1 i<array.length i array.length array array.length i++ i++ i {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        } {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        } if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            } nearbyHighest <= array[i] nearbyHighest array[i] array i {
                nearbyHighest = array[i];
                count++;
            } nearbyHighest = array[i] nearbyHighest array[i] array i count++ count {
                continue;
            } continue; System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;

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

        int n = Integer.parseInt(sc.nextLine());
        int[] array = new int[n];
        String[] input = sc.nextLine().split(" ");

        for (int i=0; i<n; i++) {
            array[i] = Integer.parseInt(input[i]);
        }

        int count = 1;
        int nearbyHighest = array[0];
        
        for (int i=1; i<array.length; i++) {
            if (nearbyHighest <= array[i]) {
                nearbyHighest = array[i];
                count++;
            } else {
                continue;
            }
        }
        System.out.println(count);
    }
}