public function render($subject = null)
    {
        if ($subject === null) {
            $subject = $this->renderChildren();
        }
        if (is_object($subject) && !$subject instanceof \Countable) {
            throw new ViewHelper\Exception('CountViewHelper only supports arrays and objects implementing \Countable interface. Given: "' . get_class($subject) . '"', 1279808078);
        }
        return count($subject);
    }