#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int N, H[1000], ans, highest;
  ans = 0;
  highest = 0;
  H[0] = 0;
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> H[i];
  for (int i = 1; i <= N; i++) {
    if (highest <= H[i]) ans++;
    highest = H[i];
  }
  cout << ans << endl;
  return 0;
}
