use a sorted diggested key for catching the result of count