lxd/db/node.go
func (c *ClusterTx) NodesCount() (int, error) {
	count, err := query.Count(c.tx, "nodes", "")
	if err != nil {
		return 0, errors.Wrap(err, "failed to count existing nodes")
	}
	return count, nil
}
func (c *ClusterTx) NodesCount() (int, error) {
	count, err := query.Count(c.tx, "nodes", "")
	if err != nil {
		return 0, errors.Wrap(err, "failed to count existing nodes")
	}
	return count, nil
}
func ( c * ClusterTx ) NodesCount ( ) ( int , error ) { count , err := query . Count ( c . tx , " " , " " ) if err != nil { return 0 , errors . Wrap ( err , " " ) } return count , nil }
// NodesCount returns the number of nodes in the LXD cluster.
//
// Since there's always at least one node row, even when not-clustered, the
// return value is greater than zero
NodesCount returns the number of nodes in the LXD cluster . Since there s always at least one node row even when not - clustered the return value is greater than zero