On the role of density fluctuations in the entropy of a fluid