#include <bits/stdc++.h>
int main(void) {
  int n = 100, h[n], x = 1, l = 0;
  scanf("%d", &n);
  for (int i = 1; i < n; i++) {
    scanf("%[^ \n] ", &h[i]);
    if (h[l] < h[i]) {
      x++;
      l = i;
    }
  }
  printf("%d", x);
  return 0;
}
