What is the number of spanning trees in an undirected simple graph?
My attempt:
Let $m$ be the number of edges in a simple graph, and let $n$ be the number of vertices.
Then number of spanning trees is $\binom{m}{n-1}$ minus the number of cycles of length $n-1$.
I read on Wikipedia that the number of spanning trees in the complete graph $K_n$ is $n^{n-2}$.
According to the formula I stated above, it should be $\binom{n(n-1)/2}{n-1} - \binom{n}{n-1} (n-1)!$.
How do I show that this is equal to $n^{n-2}$ for $K_n$?