src/Selector/Count.php
public function evaluate($value)
    {
        if (!is_array($value) && !$value instanceof Countable) {
            return false;
        }

        return $this->expr->evaluate(count($value));
    }
public function evaluate($value)
    {
        if (!is_array($value) && !$value instanceof Countable) {
            return false;
        }

        return $this->expr->evaluate(count($value));
    }
{@inheritdoc}