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