#include <bits/stdc++.h>
using namespace std;
constexpr long long int linf = numeric_limits<long long int>::max() - 5;
constexpr int inf = numeric_limits<int>::max() - 5;
constexpr long long int mod = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; (i) < (n); i++) {
    cin >> v[i];
  }
  int max_h, result = 1;
  for (int i = (1); (i) < (n); (i)++) {
    max_h = max(max_h, v[i - 1]);
    if (v[i] >= max_h) {
      result++;
    }
  }
  cout << result << endl;
  return 0;
}
