I know roughly that there is a theorem in complex analysis saying that if $f$ has degree $e_x>1$ at point $x$, which is $f(z)=(x-z)^{e_x}g(z)$, then $f^{-1}(y)$ has $e_x$ different preimages in a neighborhood of $y$.
In a complex Riemann surface, we have the same result considering $f$ in the local coordinates.
We call that $f$ ramifies at point $x$ if $e_x>1$.
I was told that the number of points where $e_x>1$ is finite.
Can anyone tell me why? Is this result valid only in compact Riemann surface or generally?
update:
I realized that $f$ has digree $e_x$ at $x$ sould be $f(z)-f(x)=(z-x)^{e_x}g(z)$ rather than what I originally posted.
Sorry for trouble..