Statistics for Creating and shaping light at single photon level