Small edit in decimal detection & counting