#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  std::vector<int> H(N);
  int ans = 1;
  for (int i = 0; i < N; ++i) {
    std::cin >> H[i];
  }
  for (int i = 1; i < N; ++i) {
    if (H[0] <= H[i] && H[i - 1] <= H[i]) ++ans;
  }
  std::cout << ans << std::endl;
  return 0;
}
