private function writeCountString($count, $name, $color, $always = false) { static $first = true; if ($always || $count > 0) { $this->writeWithColor($color, sprintf('%s%s: %d', !$first ? ', ' : '', $name, $count), false); $first = false; } }