Function to print the count of Array elements greater than all elements on its left and next K elements on its right
def countElements ( arr , n , k ) : NEW_LINE INDENT s = [ ] NEW_LINE next_greater = [ n ] * ( n + 1 ) NEW_LINE DEDENT