Polynomial Functors and Shannon Entropy