Scaling of the average crossing number in equilateral random walks, knots and proteins