Added database query count to output.