fix combined results of counts of multiple queries