func ListLen() int {
	return listLen(list)
}
ListLen returns size of nodelist.
package manager
import (
	"errors"
	"log"
	"math/rand"
	"strconv"
	"strings"
	"sync"
	"github.com/boltdb/bolt"
	"github.com/shingetsu-gou/shingetsu-gou/cfg"
	"github.com/shingetsu-gou/shingetsu-gou/db"
	"github.com/shingetsu-gou/shingetsu-gou/myself"
	"github.com/shingetsu-gou/shingetsu-gou/node"
)
const (
	defaultNodes = 100  
	shareNodes   = 100  
)
var list = string([]byte{0x01})
func getFromList() *node.Node {
	var rs map[string]struct{}
	err := db.DB.View(func(tx *bolt.Tx) error {
		var err error
		rs, err = db.GetMap(tx, "lookupT", []byte(list))
		return err
	})
	if err != nil {
		log.Print(err)
		return nil
	}
	if len(rs) == 0 {
		log.Println("node not found")
		return nil
	}
	var r string
	for rr := range rs {
		r = rr
		break
	}
	n, err := node.New(r)
	if err != nil {
		log.Println(err)
		return nil
	}
	return n
}
func NodeLen() int {
	ns := getAllNodes()
	return ns.Len()
}