Photon number tomography and q-oscillator formalism