Let $\gamma$ be a regular curve on the sphere. In a lecture, the following result was used
$$L(\gamma)=\frac 14 \int_{S^2} \sharp (\gamma \cap \xi ^\perp)d\xi$$
$\xi^\perp$ is the plane with normal $\xi$ going through the origin. $\sharp(\gamma\cap \xi^\perp)$ is the number of points in the intersection of the curve $\gamma$ and the plane $\xi^\perp$.
We're saying we can get the length of $\gamma$ by integrating the function $\xi\mapsto \sharp(\gamma\cap \xi^\perp)$ which counts intersections of $\gamma$ with moving planes. By symmetry this function is even, which means we count every point twice, and I can see why there should be a factor of $\frac 12$. I'm not sure about the $\frac 14$.
I'm having a hard time finding a proof for this result. What is a simple method of proving it?