I am have troubles with the following proof of the global Gauss-Bonnet which take the form;
Let $M$ be a compact regular surface in $\mathbb{R}^3$. If $K$ is the Gaussian curvature of $M$ then
$\int_{M} KdA=2 \pi \chi(M)$,
where $\chi$ is the Euler characeristic.
The proof is presented as follows
(Source: "An Introduction to Gaussian Geometry" by Sigmundur Gudmundsson, http://www.matematik.lu.se/matematiklu/personal/sigma/Gauss.pdf.)
Theorem $8.5$ is simply a local Gauss-Bonnet theorem.
Now, I can't figure out how the number of edges $E$ and vertices $V$ are obtained in the last equation, could someone help me out with this?