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