import java.util.*;

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

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int[] h=new int[n];
    for(int i=0;i<n;i++){
      h[i]=sc.nextInt();
    }
    int hg=-1;
    int cn=0;
    for(int i=0;i<n;i++){
      if(hg<=h[i]){
        cn++;
        hg=h[i];
      }
    }
    System.out.println(cn);
  }
}