I think the section of code between 840 and 850 (within the prod2 command) should add the below code so that we can see the entity counts per user also:
if (total > 0) {
foreach (var kvp in prodOwners) {
var perc = kvp.Value * 100 / total;
if (kvp.Key != 0) {
var n = FindPlayerName (kvp.Key);
msg += $"{n}: {perc}% [{entity count added here}]\n";
unknown -= perc;
}
}
}