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

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

        return count($value) <= $maxCount;
    }
public static function maxCount ( $ value , int $ maxCount ) : bool { if ( ! static :: isCountable ( $ value ) ) { return false ; } return count ( $ value ) <= $ maxCount ; }
Checks if value has a count less or equal to a maximum

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

@return bool
Checks if value has a count less or equal to a maximum