import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] hills = new int[n]; hills new int[n] n for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            hills[i] = in.nextInt();
        } {
            hills[i] = in.nextInt();
        } hills[i] = in.nextInt() hills[i] hills i in.nextInt() in.nextInt in int counter = 1; counter 1 int cur = hills[0]; cur hills[0] hills 0 for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        } int i = 1; int i = 1; i 1 i<n i n i++ i++ i {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        } {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        } if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            } hills[i]>=cur hills[i] hills i cur {
                counter++;
                cur = hills[i];
            } counter++ counter cur = hills[i] cur hills[i] hills i System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] hills = new int[n];
        for(int i = 0;i<n;i++) {
            hills[i] = in.nextInt();
        }
        int counter = 1;
        int cur = hills[0];
        for(int i = 1;i<n;i++) {
            if(hills[i]>=cur) {
                counter++;
                cur = hills[i];
            }
        }
        System.out.println(counter);
    }
}
