public static function pluralize($count, $singular, $number_format = null) { $word = $count == 1 ? $singular : Inflector::pluralize($singular); return $number_format === null ? "{$count} {$word}" : sprintf($number_format, $count) . ' ' . $word; }