#include <bits/stdc++.h>
int main(void) {
  int result = 0;
  int N;
  std::cin >> N;
  int* array = new int[N];
  for (int i = 0; i < N; ++i) {
    std::cin >> array[i];
  }
  int count = 0;
  for (int i = N - 1; i > 0; --i) {
    bool isOk = true;
    for (int j = i - 1; j >= 0; --j) {
      if (array[i] < array[j]) {
        isOk = false;
        break;
      }
    }
    if (isOk) ++count;
  }
  std::cout << count;
  delete array;
  return 0;
}
