import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    } main {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int mountainCount = sc.nextInt(); mountainCount sc.nextInt() sc.nextInt sc int high = -1; high -1 1 int count = 0; count 0 while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        } mountainCount-- > 0 mountainCount-- mountainCount 0 {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        } int mountainsHigh = sc.nextInt(); mountainsHigh sc.nextInt() sc.nextInt sc if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            } mountainsHigh >= high mountainsHigh high {
                count++;
                high = mountainsHigh;
            } count++ count high = mountainsHigh high mountainsHigh System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int mountainCount = sc.nextInt();
        int high = -1;
        int count = 0;
        
        while (mountainCount-- > 0) {
            int mountainsHigh = sc.nextInt();
            if (mountainsHigh >= high) {
                count++;
                high = mountainsHigh;
            }
        }

        System.out.println(count);
    }
}