But it enters the vertex twice. I'll try to present a few additional reasons to count it twice.
What can you say about the total sum of degrees in a graph? It's an even number, equal to $2 \cdot \\#E$, where $\\#E$ is the number of edges. This would fall apart if you counted such edges only once.
Also, imagine that it was a directed graph. You'd need the info that the edge both enters and exists vertex $5$.