import re


def parse_columns_number(s):
    """
    Function that returns the columns number as an int.

    :param s: (str) String from which the yid is parsed.
    :return: Columns number value.
    """
    columns_number = None
    g = re.findall(r"#COLUMNINFO[=\s+]+(\d*)", s)
    if g:
        columns_number = max(map(int, re.findall(r"#COLUMNINFO[=\s+]+(\d*)", s)))
    return columns_number