Add a 32-bit version of CountDigits.