countChange implementation for minimalist (single denomination) example