Missing API for getting just the count of a key range?

You can see an explanation in this thread => Getting the number of key/value pairs

.