Text this: Photon number resolving detection using time-multiplexing