If I have the following graph : 
Should the degree of vertex $v_2$ be 1 or 2...I'm asking this because I'm not sure whether loop should be counted while considering degree...
(In my notes the definition of degree of a vertex $a$ is defined to be : the no. of edges it belongs to).
The degree at $v_2$ is $3$. A loop adds $2$ to the degree at that vertex. (We want each edge to add $2$ to the degree count so that the sum of all degrees in a graph is equal to twice the number of edges.)