I'm studying complex analysis from Ash's book:
The argument principle for meromorphic stated here is:
4.2.6 Definition
For $f$ meromorphic on $\Omega$, let $Z(f)$ denote the set of zeros of $f$, and $P(f)$ the set of poles of $f$. If $z\in Z(f)\cup P(f)$, let $m(f,z)$ be the order of the zero or pole of $f$ at $z$.
4.2.7 Argument Principle for Meromorphic Functions
Suppose $f$ is meromorphic on $\Omega$. Then for any closed path (or cycle) $\gamma$ in $\Omega \backslash(Z(f)\cup P(f))$ such that $\gamma$ is $\Omega$-homologous to $0$, we have $$n(f\circ \gamma, 0) = \sum_{z\in Z(f)}n(\gamma,z)m(f,z) - \sum_{z\in P(f)}n(\gamma, z)m(f,z).$$
How do I know the sum on $Z(f)$ is well defined? Must that set be countable? Is $\Omega$ always defined to be connected for a meromorphic function?
If $[a,b]$ is the domain of $\gamma$, then the set$$\left\{z\in\mathbb{C}\,|\,n(\gamma,z)\neq0\right\}\cup\gamma\bigl([a,b]\bigr)$$is compact. Therefore, by the identity theorem, you can have $n(\gamma,z)\neq0$ for finitely many zeros of $f$ only.