add possibility to do photon counting before fitting sphere model