Influence of the particle number on the spin dynamics of ultracold atoms