import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] mount = new int[n]; mount new int[n] n for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            mount[i] = Integer.parseInt(sc.next());
        } {
            mount[i] = Integer.parseInt(sc.next());
        } mount[i] = Integer.parseInt(sc.next()) mount[i] mount i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        } {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        } boolean taller = true; taller true for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            } int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            } {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            } if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                } mount[j] > mount[i] mount[j] mount j mount[i] mount i {
                    taller = false;
                    break;
                } taller = false taller false break; if (taller) {
                cnt++;
            } taller {
                cnt++;
            } 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 = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] mount = new int[n];
        for (int i = 0; i < n; i++) {
            mount[i] = Integer.parseInt(sc.next());
        }
        int cnt = 0;
        for (int i = 0; i < n; i++) {
            boolean taller = true;
            for (int j = 0; j < i; j++) {
                if (mount[j] > mount[i]) {
                    taller = false;
                    break;
                }
            }
            if (taller) {
                cnt++;
            }
        }
        System.out.println(cnt);
    }
}