I think you start by working the maximum likelihood estimation formula of a binomial RV. The number of photons captured is (1,000,000) and the probability of the camera catching a photon is p, n (the number of photons total) is what we are looking for.
$ \hat n_{ML} = \text{max}_a ( f_{X}(x_i;a) ) = |x_i| $