There is already an answer here on the ML estimator for binomial p: Maximum likelihood estimation of p in a Binomial sample
Let me add a twist to the question: let's assume we don't know all the samples, but only count for a single value. So, for example, we have drawn M samples from a binomial distribution with known parameter N and unknown parameter p. The only information we know is that out of these M samples, m of them are equal to some value k.
So my question is: what is the ML estimator for p in Bin(N,p) if we know that m out of M samples are equal to k?