#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int h[30];
  int cnt = 0;
  int target = 0;
  for (int i = (int)0; i < (int)n; ++i) cin >> h[i];
  for (int i = (int)0; i < (int)n; ++i) {
    if (h[i] >= target) cnt++;
    target = h[i];
  }
  cout << cnt << endl;
  return 0;
}
