import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    }

} Main public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    } main {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    } 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 for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            
            H[i] = sc.nextInt();
        } {
            
            H[i] = sc.nextInt();
        } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc int max = H[0]; max H[0] H 0 int canSee = 1; canSee 1 for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        } {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        } if (H[i] >= max) {

                canSee++;
                max = H[i];
            } H[i] >= max H[i] H i max {

                canSee++;
                max = H[i];
            } canSee++ canSee max = H[i] max H[i] H i System.out.println(canSee) System.out.println System.out System System.out canSee sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    }

} public class Main {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int[] H = new int[N];
        
        for (int i = 0; i < N; i++) {
            
            H[i] = sc.nextInt();
        }
        
        int max = H[0];
        int canSee = 1;

        for (int i = 1; i < N; i++) {

            if (H[i] >= max) {

                canSee++;
                max = H[i];
            }
        }
        
        System.out.println(canSee);
        
        sc.close();
    }

}