$$ E(S) = \sum_{i=1}^{c}{-p_i \ log_2 \ p_i}$$