import java.util.Scanner;
 
class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String n = scanner.nextLine();
    String[] h = scanner.nextLine().split(" ");
    
    int max = Integer.parseInt(h[0]);
    int lookAble = 1;
    
    for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    }
 
    System.out.print(lookAble);
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String n = scanner.nextLine();
    String[] h = scanner.nextLine().split(" ");
    
    int max = Integer.parseInt(h[0]);
    int lookAble = 1;
    
    for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    }
 
    System.out.print(lookAble);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String n = scanner.nextLine();
    String[] h = scanner.nextLine().split(" ");
    
    int max = Integer.parseInt(h[0]);
    int lookAble = 1;
    
    for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    }
 
    System.out.print(lookAble);
  } main {
    Scanner scanner = new Scanner(System.in);
    String n = scanner.nextLine();
    String[] h = scanner.nextLine().split(" ");
    
    int max = Integer.parseInt(h[0]);
    int lookAble = 1;
    
    for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    }
 
    System.out.print(lookAble);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String n = scanner.nextLine(); n scanner.nextLine() scanner.nextLine scanner String[] h = scanner.nextLine().split(" "); h scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int max = Integer.parseInt(h[0]); max Integer.parseInt(h[0]) Integer.parseInt Integer h[0] h 0 int lookAble = 1; lookAble 1 for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    } int i = 1; int i = 1; i 1 i < Integer.parseInt(n) i Integer.parseInt(n) Integer.parseInt Integer n i++ i++ i {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    } {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    } if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      } max <= Integer.parseInt(h[i]) max Integer.parseInt(h[i]) Integer.parseInt Integer h[i] h i {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      } lookAble ++ lookAble max = Integer.parseInt(h[i]) max Integer.parseInt(h[i]) Integer.parseInt Integer h[i] h i System.out.print(lookAble) System.out.print System.out System System.out lookAble String[] args args
import java.util.Scanner;
 
class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String n = scanner.nextLine();
    String[] h = scanner.nextLine().split(" ");
    
    int max = Integer.parseInt(h[0]);
    int lookAble = 1;
    
    for(int i = 1; i < Integer.parseInt(n); i++) {
      if(max <= Integer.parseInt(h[i])) {
        lookAble ++;
        max = Integer.parseInt(h[i]);
      }
    }
 
    System.out.print(lookAble);
  }
}