func (uos *UnspentOutputs) GetCount() (int, error) {
	return uos.DB.getCountInBucket(unspentTransactionsBucket)
}
get count of records in the table
package database
import (
	"github.com/boltdb/bolt"
)
const unspentTransactionsBucket = "unspentoutputstransactions"
type UnspentOutputs struct {
	DB *BoltDB
}
func (uos *UnspentOutputs) InitDB() error {
	return uos.DB.db.Update(func(tx *bolt.Tx) error {
		_, err := tx.CreateBucket([]byte(unspentTransactionsBucket))
		return err
	})
}
func (uos *UnspentOutputs) ForEach(callback ForEachKeyIteratorInterface) error {
	return uos.DB.forEachInBucket(unspentTransactionsBucket, callback)
}