Researchers created a detector system that can count from zero to more than 9,000 individual photons. It could help scientists study quantum light and make more precise optical measurements.