import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] tmp = br.readLine().split(" "); tmp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] height = new int[N]; height new int[N] N for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      height[i] = Integer.parseInt(tmp[i]);
    } {
      height[i] = Integer.parseInt(tmp[i]);
    } height[i] = Integer.parseInt(tmp[i]) height[i] height i Integer.parseInt(tmp[i]) Integer.parseInt Integer tmp[i] tmp i int count = 1; count 1 boolean f = true; f true for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    } {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    } for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      } int j = 0; int j = 0; j 0 j < i j i j++ j++ j {
        if (height[j] > height[i]) {
          f = false;
        }
      } {
        if (height[j] > height[i]) {
          f = false;
        }
      } if (height[j] > height[i]) {
          f = false;
        } height[j] > height[i] height[j] height j height[i] height i {
          f = false;
        } f = false f false if (f) {
        count++;
      } f {
        count++;
      } count++ count f = true f true 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) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int N = Integer.parseInt(br.readLine());
    String[] tmp = br.readLine().split(" ");
    int[] height = new int[N];
    
    for (int i = 0; i < N; i++) {
      height[i] = Integer.parseInt(tmp[i]);
    }
    
    int count = 1;
    boolean f = true;
    for (int i = 1; i < N; i++) {
      for (int j = 0; j < i; j++) {
        if (height[j] > height[i]) {
          f = false;
        }
      }
      if (f) {
        count++;
      }
      f = true;
    }
    System.out.println(count);
  }
}