Add missing a method that compute the number of digits