Naive solution to the digit statistics problem.