Maximum-Likelihood Estimation of the Number-Flux Distribution of Radio Sources in the Presence of Noise and Confusion