SQL: improved count(*) against range using indexes