#include <bits/stdc++.h>
using namespace std;
using P = pair<long long, long long>;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
const long long MOD = 1000000007;
const int INF = 1 << 30;
int main() {
  int N;
  cin >> N;
  vector<int> h(N);
  for (int i = 0; i < N; i++) cin >> h[i];
  int ans = 0;
  for (int i = 0; i < N; ++i) {
    bool flag = true;
    for (int j = i + 1; j < N; ++j) {
      if (h[i] > h[j]) flag = false;
    }
    if (flag) ans++;
  }
  cout << ans << endl;
}
