Evaluate the integral $\int_{C}\frac{\cos(z)}{\sin(z)}dz$, where $C$ is a circle centered at the origin and there is no zero of $\sin(z)$ inside of $C$ other than the point $(0,0)$.
I think for this problem I need to apply the residue theorem and clearly the origin is a pole. But how do I determine the order of this pole? Or there is another way to solve this problem without the residue theorem? Thanks.