Include result counts by reference when performing a query
Merge pull request #3 from bboer/feature/return_result_counts

Include result counts by reference