Detecting two photons with one molecule