Using Green's theorem, evaluate $\int_{c} \mathbf{F}(\mathbf{r}) \cdot d \mathbf{r}$ counterclockwise around the boundary curve $C$ of the region $R$, where
$$\begin{aligned}
&\mathbf{P}=\left[\begin{array}{lll}
y & \sin x, & 2 x \cos y
\end{array}\right], R \text { the square with vertices }\\
&\left.(0,0),\left(\frac{1}{2} \pi, 0\right), \frac{1}{2} \pi, \frac{1}{2} \pi\right),\left(0, \frac{1}{2} \pi\right)
\end{aligned}$$