need to count spanning trees