#include <bits/stdc++.h>
using namespace std;
struct aaa {
  aaa() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  };
} aaaaaaa;
const int INF = 1001001001;
const long long LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
const int dx[] = {1, 1, 0, -1, -1, -1, 0, 1},
          dy[] = {0, 1, 1, 1, 0, -1, -1, -1};
string divide[4] = {"dream", "dreamer", "erase", "eraser"};
signed main() {
  int n{};
  cin >> n;
  vector<int> h(n);
  for (int i = 0, i_len = n; i < i_len; ++i) cin >> h[i];
  int cnt = 1;
  int v = h[0];
  for (int i = 1, i_len = n; i < i_len; ++i) {
    v = h[0];
    if (max(v, h[i - 1]) <= h[i]) {
      int amax = max(v, h[i]);
      ++cnt;
    }
  }
  cout << cnt << endl;
  return 0;
}
