Definition (winding number)
Let $γ: [a,b]\to \C$ be a closed curve and $w\in \C\setminus γ$.
The winding number (or winding index) of $γ$ about $w$ is $$ \begin{align*} I(γ; w) = \frac{θ(b) - θ(a)}{2π}\in \Z \end{align*} $$ where $θ: [a,b]\to \R$ is a continuous polar angle defined here.