import java.util.*;

public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  }
} import java.util.*; util.* java public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  }
} Main public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  } main {
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int cnt = 1; cnt 1 int h[] = new int[n]; h new int[n] n int my_height; my_height for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
          h[i] = scan.nextInt();
        } {
          h[i] = scan.nextInt();
        } h[i] = scan.nextInt() h[i] h i scan.nextInt() scan.nextInt scan for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        } int i = n-1 ; int i = n-1 ; i n-1 n 1 i > 0 i 0 i-- i-- i {
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        } {
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        } my_height = h[i] my_height h[i] h i cnt++ cnt for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          } int j = i ; int j = i ; j i j >= 0 j 0 j-- j-- j {
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          } {
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          } if( my_height < h[j] ){
              cnt--;
              break;
            } my_height < h[j] my_height h[j] h j {
              cnt--;
              break;
            } cnt-- cnt break; System.out.println(cnt) System.out.println System.out System System.out cnt String args[] args public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  }
} public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  }
} Main
import java.util.*;

public class Main {
	  public static void main(String args[]){
      	Scanner scan = new Scanner(System.in);
            
        int n = scan.nextInt();
        int cnt = 1;
        int h[] = new int[n];
        
        int my_height;
        
        for( int i = 0 ; i < n; i++){
          h[i] = scan.nextInt();
        }
        
        for( int i = n-1 ; i > 0 ; i-- ){
          my_height = h[i];
          cnt++;
          for( int j = i ; j >= 0 ; j-- ){
            if( my_height < h[j] ){
              cnt--;
              break;
            }
          }
        }
            
        System.out.println(cnt);
	  }
}