Entropy of an ideal gas is defined as the logarithm of the number of possible states the gas can have multiplied by Boltzmann's constant:
$${\displaystyle S=k_{\mathrm {B} }\log \Omega .}$$
In deriving the Maxwell-Boltzmann distribution, we initially start by counting a finite number of states, so this definition of entropy makes sense. But in the end we say that the number of possible states is so high that we can acctually say the distribution is continuous. But if the distribution is continuous, the number of possible states is infinite. So why is entropy not always infinite when a continuous distribution is used?