Do you need to ask the database for a count, would ```len(hits)``` (below) work instead?