Statistical Chemical Thermodynamics and Energetic Behavior of Counting: Gibbs' Theory Revisited.