import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] heightArr = new int[n]; heightArr new int[n] n for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            heightArr[i] = sc.nextInt();
        } {
            heightArr[i] = sc.nextInt();
        } heightArr[i] = sc.nextInt() heightArr[i] heightArr i sc.nextInt() sc.nextInt sc int hotelCount = 0; hotelCount 0 for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        } int i = 0; int i = 0; i 0 i < heightArr.length i heightArr.length heightArr heightArr.length i++ i++ i {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        } {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        } if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            } i == 0 i 0 {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            } hotelCount++ hotelCount continue; boolean canSeeSea = true; canSeeSea true for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            } int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            } {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            } if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                } heightArr[j] > heightArr[i] heightArr[j] heightArr j heightArr[i] heightArr i {
                    canSeeSea = false;
                    break;
                } canSeeSea = false canSeeSea false break; if (canSeeSea) {
                hotelCount++;
            } canSeeSea {
                hotelCount++;
            } hotelCount++ hotelCount System.out.println(hotelCount) System.out.println System.out System System.out hotelCount String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int[] heightArr = new int[n];
        for (int i = 0; i < n; i++) {
            heightArr[i] = sc.nextInt();
        }

        int hotelCount = 0;
        for (int i = 0; i < heightArr.length; i++) {
            if (i == 0) {
                // 一番西の場合は必ず海が見える
                hotelCount++;
                continue;
            }

            boolean canSeeSea = true;
            for (int j = 0; j < i; j++) {
                if (heightArr[j] > heightArr[i]) {
                    canSeeSea = false;
                    break;
                }
            }

            if (canSeeSea) {
                hotelCount++;
            }
        }

        System.out.println(hotelCount);
    }
}
