import java.util.Scanner;

/**
 * Created by dezhonger on 2019/4/13
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    } main {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) a[i] = scanner.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = scanner.nextInt(); a[i] = scanner.nextInt() a[i] a i scanner.nextInt() scanner.nextInt scanner int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int r = 0; r 0 for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        } {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        } max = Math.max(max, a[i]) max Math.max(max, a[i]) Math.max Math max a[i] a i if (max == a[i]) r++; max == a[i] max a[i] a i r++ r System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    }
} Main
import java.util.Scanner;

/**
 * Created by dezhonger on 2019/4/13
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = scanner.nextInt();

        int max = Integer.MIN_VALUE;
        int r = 0;
        for (int i = 0; i < n ;i++) {
            max = Math.max(max, a[i]);
            if (max == a[i]) r++;
        }
        System.out.println(r);
    }
}
