#include <bits/stdc++.h>
int main() {
  int str[20], num, max, cnt = 1, i;
  scanf("%d,%d", &num, &str[0]);
  max = str[0];
  for (i = 1; i < num; i++) {
    scanf("%d", &str[i]);
    if (str[i] >= max) {
      max = str[i];
      cnt++;
    }
  }
  printf("%d", cnt);
}
