import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 }
} import java.util.*; util.* java public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 } 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 int i; i for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    } i=0; 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 total = 1; total 1 int num = h[0]; num h[0] h 0 for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    } i=1; i=1 i 1 i<n i n i++ i++ i {
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    } {
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    } if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      } h[i]>=num h[i] h i num {
        total = total +1;
        num = h[i];
      } total = total +1 total total +1 total 1 num = h[i] num h[i] h i {
        continue;
      } continue; System.out.println(total) System.out.println System.out System System.out total String args[] args public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 }
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 }
} Main
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] h = new int[n];
    int i;
    for(i=0;i<n;i++){
      h[i] = sc.nextInt();
    }
    int total = 1;
    int num = h[0];
    for(i=1;i<n;i++){
      if(h[i]>=num){
        total = total +1;
        num = h[i];
      }else{
        continue;
      }
    }
    System.out.println(total);    
 }
}