In a town, there are taxis labeled from $1$ to $n$ ($n$ is the total number of taxis). We arrive in the town and see a taxi with label $100$. With the method of maximum likelihood estimation, find $n$.
The solution says $n=100$, but I can't figure out why.
The likelihood on this data is $1/n$ if $n\ge 100$ and zero otherwise (since a draw of $100$ is impossible if $n<100$). This is maximized for $n=100,$ so the MLE is $100.$