This blog talks about generating "twisty little mazes" using a computer an enumerating them. The enumeration can be done using Wilson's algorithm to get the UST, but I don't remember the formula for how many there.
http://strangelyconsistent.org/blog/youre-in-a-space-of-twisty-little-mazes-all-alike
In principle the Matrix Tree Theorem states the number of spanning trees of a graph is equal to the determinant of the Laplacian matrix of the graph. Let $G= (E,V)$ be the graph and $A$ be the adjacency matrix, $D$ be the degree matrix, then $\Delta = D - A$ with eigenvalues $\lambda$, then:
$$ k(G) = \frac{1}{n} \prod_{k=1}^{n-1} \lambda_k $$
In the case of an $m \times n$ rectangle both $A$ and the eigenvalues should take a particularly simple form, which I can't find.
What is the exact formula (and asymptotics) for the # of spanning trees of an $m \times n$ rectangle?
Here is a pretty example of Wilson's algorithm in action.