fixing the count(*) when display_total is false #2638

Hi  @seanlinsley I got an idea and I thought it will be useful since no matter how we do it, we depend on kaminari to avoid the count(*) to get the total amount of records. Can you take a look and give me your feedback? Thanks!

JL