Using a qubit to measure photon-number statistics of a driven thermal oscillator | Synapse