v.23.2Backward Incompatible Changes

Slight performance improvement for countDigits function and correction of countDigits(0) return value

Slightly improve performance of countDigits on realistic datasets. This closed #44518. In previous versions, countDigits(0) returned 0; now it returns 1, which is more correct, and follows the existing documentation. #46187 (Alexey Milovidov).