all_digits_count renamed to numbers_count
count_numbers extracted
numbers_count changed to a member
calculate_histogram extracted
words local collection removed