Return the current (not the maximum) length of history.
readline/get_current_history_length
get_current_history_length