Create CountDigits.cpp

Solution for count digits.