public static function rangeCount($value, int $minCount, int $maxCount): bool
    {
        if (!static::isCountable($value)) {
            return false;
        }

        $count = count($value);

        if ($count < $minCount) {
            return false;
        }
        if ($count > $maxCount) {
            return false;
        }

        return true;
    }
public static function rangeCount($value, int $minCount, int $maxCount): bool
    {
        if (!static::isCountable($value)) {
            return false;
        }

        $count = count($value);

        if ($count < $minCount) {
            return false;
        }
        if ($count > $maxCount) {
            return false;
        }

        return true;
    }
public static function rangeCount ( $ value , int $ minCount , int $ maxCount ) : bool { if ( ! static :: isCountable ( $ value ) ) { return false ; } $ count = count ( $ value ) ; if ( $ count < $ minCount ) { return false ; } if ( $ count > $ maxCount ) { return false ; } return true ; }
Checks if value has a count within a range

@param mixed $value    The value
@param int   $minCount The minimum count
@param int   $maxCount The maximum count

@return bool
Checks if value has a count within a range