Entropy and cosmology