#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m = 0, ans = 0;
  int h[n];
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) scanf("%d", &h[i]);
  for (int i = 0; i < n; ++i) {
    if (h[i] >= m) {
      m = h[i];
      ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
