Retrieve distinct values count by using ValuesHandle on result fetching.