import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    }
} 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[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    } 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 int cnt = 1; cnt 1 for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        } {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if (i == 0) {
                continue;
            } i == 0 i 0 {
                continue;
            } continue; boolean isView = true; isView true for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            } int j=0; int j=0; j 0 j<H.length j H.length H H.length j++ j++ j {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            } {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            } if (H[j] > H[i]) {
                    isView = false;
                    break;
                } H[j] > H[i] H[j] H j H[i] H i {
                    isView = false;
                    break;
                } isView = false isView false break; if (isView)
                cnt++; isView cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    }
} 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[] H = new int[N];
        int cnt = 1;
        for (int i=0; i<N; i++) {
            H[i] = sc.nextInt();
            if (i == 0) {
                continue;
            }
            boolean isView = true;
            for (int j=0; j<H.length; j++) {
                if (H[j] > H[i]) {
                    isView = false;
                    break;
                }
            }
            if (isView)
                cnt++;
        }
        System.out.println(cnt);
    }
}