The block shown in the figure, is acted on by a spring with spring constant k and a weak frictional force of constant magnitude f. The block is pulled a distance x0 from equilibrium position and then released. It oscillates many times and ultimately comes to rest. Find the number of cycles the mass oscillates before coming to rest :