Facing The Sun
easy
Given an array ht representing heights of buildings. You have to count the buildings which will see the sunrise (Assume : Sun rise on the side of array starting point).
Constraints
1 <= N <= 10^6 1 <= H[i] <= 10^8
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
5
7 4 8 2 9
Sample Output
3