#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int H[N];
  for (int i = 0; i < N; i++) cin >> H[i];
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    if (H[0] <= H[i + 1]) {
      cnt++;
      H[0] = H[i + 1];
    }
  }
  cout << cnt;
  return 0;
}
