Computation of rotation numbers for a class of PL-circle homeomorphisms