blockchain: Add exported TSpendCountVotes func
blockchain: Add exported TSpendCountVotes func

This allows external callers to tally the number of votes a given
treasury spend transaction has received.

This will be used in a future commit to allow the rpc server to offer
tspend vote counts via a new gettreasuryspendvotes command.

decred/dcrd,decred/dcrd