Added GetNumDigits