Frequency Distribution Classes

Chooses how many classes a histogram should have and how wide they are, using Sturges' rule k = log₂n + 1, then counts how many values fall into each class.