add counting coins utils