import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for (int i =0; i<n; i++) {
            h[i] = sc.nextInt();
        }

        int result = 0;
        int baseHight =-1;

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

        int result = 0;
        int baseHight =-1;

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

        int result = 0;
        int baseHight =-1;

        for (int i =0; i<n; i++) {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        }
        System.out.println(result);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for (int i =0; i<n; i++) {
            h[i] = sc.nextInt();
        }

        int result = 0;
        int baseHight =-1;

        for (int i =0; i<n; i++) {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        }
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] 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 int result = 0; result 0 int baseHight =-1; baseHight -1 1 for (int i =0; i<n; i++) {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        } int i =0; int i =0; i 0 i<n i n i++ i++ i {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        } {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        } if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } baseHight <= h[i] baseHight h[i] h i {
               result++;
               baseHight = h[i];
           } result++ result baseHight = h[i] baseHight h[i] h i System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for (int i =0; i<n; i++) {
            h[i] = sc.nextInt();
        }

        int result = 0;
        int baseHight =-1;

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

        int result = 0;
        int baseHight =-1;

        for (int i =0; i<n; i++) {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        }
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] h = new int[n];
        for (int i =0; i<n; i++) {
            h[i] = sc.nextInt();
        }

        int result = 0;
        int baseHight =-1;

        for (int i =0; i<n; i++) {
           if (baseHight <= h[i]) {
               result++;
               baseHight = h[i];
           } 
        }
        System.out.println(result);
        sc.close();
    }
}