Pyramidal n-gon

The base of a pyramid has n edges. What is the difference between the number of edges the pyramid has and the number of faces the pyramid has?

Problem



The base of a pyramid has $n$ edges. In terms of $n$, what is the difference between the number of edges of the pyramid and the number of faces?

If you liked this problem, here is an NRICH task which challenges you to use similar mathematical ideas.