Correctly returns total database counts.