import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number_n number_n i i j j count = 0; count 0 number_n = Integer.parseInt(sc.next()) number_n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] height = new int[number_n]; height new int[number_n] number_n for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    } i = 0; i = 0 i 0 i < number_n i number_n i++ i++ i {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    } {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    } height[i] = Integer.parseInt(sc.next()) height[i] height i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      } j = 0; j = 0 j 0 j < i j i j++ j++ j {
        if(height[j] > height[i]) {
          break;
        }
      } {
        if(height[j] > height[i]) {
          break;
        }
      } if(height[j] > height[i]) {
          break;
        } height[j] > height[i] height[j] height j height[i] height i {
          break;
        } break; if(j == i) count++; j == i j i count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_n, i, j, count = 0;
    number_n = Integer.parseInt(sc.next());
    int[] height = new int[number_n];
    for(i = 0; i < number_n; i++) {
      height[i] = Integer.parseInt(sc.next());
      for(j = 0; j < i; j++) {
        if(height[j] > height[i]) {
          break;
        }
      }
      if(j == i) count++;
    }
    System.out.println(count);
  }
}
