added number of digits function
added problem 37 solution