count digits for achievements