Particle densities in S-S and Pb-Pb collisions at RHIC and LHC