#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1000000007;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int ddx[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
int ddy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
bool debug = false;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) cin >> H[i];
  int ans = 1, high = H[0];
  for (int i = 1; i < N; i++) {
    if (high <= H[i])
      ans++;
    else
      high = max(high, H[i]);
  }
  cout << ans << endl;
  return 0;
}
