#include <bits/stdc++.h>
int main(void) {
  int N, i, n = 0, ans = 0;
  int H[N];
  scanf("%d", &N);
  for (i = 0; i < N; i++) {
    scanf("%d", &H[i]);
    if (H[i] >= n) {
      n = H[i];
      ans++;
    }
  }
  printf("%d¥n", ans);
  return 0;
}
