Entanglement spectrum degeneracy and the Cardy formula in 1+1 dimensional conformal field theories