Photon statistics of dye lasers, a non-marcovian analytical model