private void ShowNodeCounts(KernelTransaction ktx, DbStructureVisitor visitor) { Read read = ktx.DataRead(); visitor.VisitAllNodesCount(read.CountsForNode(ANY_LABEL)); foreach (Label label in _db.AllLabels) { int labelId = ktx.TokenRead().nodeLabel(label.Name()); visitor.VisitNodeCount(labelId, label.Name(), read.CountsForNode(labelId)); } }