import java.util.*;
public class Main{
  public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  }
} Main public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 int max_hight = 0; max_hight 0 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    } {
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc if (h >= max_hight){
        max_hight = h;
        count++;
      } h >= max_hight h max_hight {
        max_hight = h;
        count++;
      } max_hight = h max_hight h count++ count System.out.println(count) System.out.println System.out System System.out count String[] augs augs public class Main{
  public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  }
} public class Main{
  public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] augs){
    Scanner sc = new Scanner(System.in);
    int count = 0;
    int max_hight = 0;
    int n = sc.nextInt();
    
    for (int i=1; i<=n; i++){
      int h = sc.nextInt();
      if (h >= max_hight){
        max_hight = h;
        count++;
      }
    }
    
    System.out.println(count);
  }
}