#include <bits/stdc++.h>
int main(void) {
  int n;
  int i, j;
  int num = 0;
  int high[100];
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &high[i]);
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      if (high[i] < high[j]) break;
      if (j = n - 1) num++;
    }
  }
  printf("%d", num);
}
