For any finite value , apply the argument principle to around a fundamental parallelogram whose boundary avoids zeros and poles. Periodicity cancels the opposite-edge integrals, so the number of solutions of equals the fixed number of poles of , counting multiplicities.
Codex Wiki