#include <bits/stdc++.h>
using namespace std;
void mmin(long long &a, long long b) { a = min(a, b); }
void mmax(long long &a, long long b) { a = max(a, b); }
signed main() {
  long long pr = 1000;
  pr *= pr * pr;
  pr += 7;
  long long n;
  cin >> n;
  vector<long long> h(n);
  for (long long i = 0; i < n; i++) {
    cin >> h[i];
  }
  long long count = 0;
  for (long long i = 0; i < n; i++) {
    if (i == 0) {
      count++;
      continue;
    }
    if (h[i] >= *max_element(h.begin(), h.begin() + i - 1)) {
      count++;
    }
  }
  cout << count << endl;
  return 0;
}
