add total count to the results