#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const long long INF = 1LL << 58;
template <class T>
bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
void chmax(T &a, T b) {
  if (a < b) a = b;
}
template <class T>
int former(const vector<T> &v, T x) {
  return upper_bound(v.begin(), v.end(), x) - v.begin() - 1;
}
template <class T>
int latter(const vector<T> &v, T x) {
  return lower_bound(v.begin(), v.end(), x) - v.begin();
}
int main() {
  int N;
  vector<int> H(N);
  cin >> N;
  int maxHeight = 0;
  int count = 0;
  for (int i = 0; i < (N); ++i) {
    cin >> H[i];
    if (maxHeight <= H[i]) {
      count++;
    }
    maxHeight = max(maxHeight, H[i]);
  }
  cout << count << endl;
}
