Fixed small bug on estimated_result_count

It was returning always nil.

Thanks