Move count_intervals function to general special_count
Generalize basic_stats function
Improve basic_stats code
Generalize distribution function
Fix chart title