Revealing the Number of Single Photons in Real Time