lxd/cluster/membership.go
func Count(state *state.State) (int, error) {
	var count int
	err := state.Cluster.Transaction(func(tx *db.ClusterTx) error {
		var err error
		count, err = tx.NodesCount()
		return err
	})
	return count, err
}
func Count(state *state.State) (int, error) {
	var count int
	err := state.Cluster.Transaction(func(tx *db.ClusterTx) error {
		var err error
		count, err = tx.NodesCount()
		return err
	})
	return count, err
}
func Count ( state * state . State ) ( int , error ) { var count int err := state . Cluster . Transaction ( func ( tx * db . ClusterTx ) error { var err error count , err = tx . NodesCount ( ) return err } ) return count , err }
// Count is a convenience for checking the current number of nodes in the
// cluster.
Count is a convenience for checking the current number of nodes in the cluster .