src/Template/Helpers/AppendCountableSuffixHelper.php
public function execute(Template $template, Context $context, $args, $source)
    {
        $arguments = $template->parseArguments($args);
        if (count($arguments) != 3) {
            throw new \InvalidArgumentException(
                '"appendCountableSuffix" helper expects exactly 3 arguments.'
            );
        }

        return self::appendCountableSuffix($context->get($arguments[0]), $arguments[1], $arguments[2]);
    }
public function execute(Template $template, Context $context, $args, $source)
    {
        $arguments = $template->parseArguments($args);
        if (count($arguments) != 3) {
            throw new \InvalidArgumentException(
                '"appendCountableSuffix" helper expects exactly 3 arguments.'
            );
        }

        return self::appendCountableSuffix($context->get($arguments[0]), $arguments[1], $arguments[2]);
    }
{@inheritdoc}