This is the
Given a starting key, and an ending key estimate the number of rows that will exist between the two. end_key may be empty which in case determine if start_key matches any rows.
Used by optimizer to calculate cost of using a particular index.
Called from opt_range.cc by check_quick_keys().