Zaslat SMS: Photon number resolving detection using time-multiplexing