added decimal functionality to counter