import java.util.*;
class Main {
  public static void main(String[] args){
    System.out.println(Mountain());
  }
  public static int Mountain() {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int maxNum = 0;
    int result = 0;

    for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    }
    return result;
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args){
    System.out.println(Mountain());
  }
  public static int Mountain() {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int maxNum = 0;
    int result = 0;

    for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    }
    return result;
  }
} Main public static void main(String[] args){
    System.out.println(Mountain());
  } main {
    System.out.println(Mountain());
  } System.out.println(Mountain()) System.out.println System.out System System.out Mountain() Mountain String[] args args public static int Mountain() {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int maxNum = 0;
    int result = 0;

    for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    }
    return result;
  } Mountain {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int maxNum = 0;
    int result = 0;

    for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    }
    return result;
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int maxNum = 0; maxNum 0 int result = 0; result 0 for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    } int i = 0; int i = 0; i 0 i < x i x i++ i++ i {
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    } {
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    } int num =  scanner.nextInt(); num scanner.nextInt() scanner.nextInt scanner maxNum = Math.max(maxNum, num) maxNum Math.max(maxNum, num) Math.max Math maxNum num if(maxNum == num) result++; maxNum == num maxNum num result++ result return result; result
import java.util.*;
class Main {
  public static void main(String[] args){
    System.out.println(Mountain());
  }
  public static int Mountain() {
    Scanner scanner = new Scanner(System.in);
    int x = scanner.nextInt();
    int maxNum = 0;
    int result = 0;

    for(int i = 0; i < x; i++){
      int num =  scanner.nextInt();
      maxNum = Math.max(maxNum, num); 
      if(maxNum == num) result++;
    }
    return result;
  }
}