import java.util.Scanner;
public class Main {
  
  public static void main(String[] args) {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
}
} 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 [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
}
} Main public static void main(String[] args) {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
} main {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
} Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int [] arr = new int [N+1]; arr new int [N+1] N+1 N 1 for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            arr[i] = scanner.nextInt();
        } {
            arr[i] = scanner.nextInt();
        } arr[i] = scanner.nextInt() arr[i] arr i scanner.nextInt() scanner.nextInt scanner int counter = 1; counter 1 int lastseeocean = arr[0]; lastseeocean arr[0] arr 0 for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        } {
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        } if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            } arr[i] >= lastseeocean arr[i] arr i lastseeocean {
                counter++;
                lastseeocean = arr[i];
            } counter++ counter lastseeocean = arr[i] lastseeocean arr[i] arr i System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
  
  public static void main(String[] args) {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
}
} public class Main {
  
  public static void main(String[] args) {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
}
} Main
import java.util.Scanner;
public class Main {
  
  public static void main(String[] args) {
Scanner scanner = new Scanner (System.in);
        int N = scanner.nextInt();
        int [] arr = new int [N+1];
        for (int i = 0; i < N; i++){
            arr[i] = scanner.nextInt();
        }
        int counter = 1;
        int lastseeocean = arr[0];
        for (int i = 1; i < N; i++){
            if (arr[i] >= lastseeocean){
                counter++;
                lastseeocean = arr[i];
            }
        }
        System.out.println(counter); 
}
}