import java.util.Scanner;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] hi = new int[n];
        for (int i = 0; i < n; i++) {
            hi[i] = sc.nextInt();
        }
        int ans = 1;
        int high = 0;
        for (int i = 1; i < n; i++) {
            if (hi[i] >= hi[i - 1] && hi[i] >= hi[0] && hi[i] >= high) {
                ans++;
                high = hi[i];
            }
        }
        System.out.println(ans);
    }
}