Finds the number of digits.