Change getCount() to getDistinctCount()