Abundance of damped Lyman-alpha absorbers in cosmological SPH simulations