import re


def GetFormatCount(format_):
    """
    Get format prefix count

    @param format_:
        format specifier

    @return:
        prefix count or 1 if not specified
    """

    if isinstance(format_, str):
        match = re.search("\s*(\d+)", format_)
        if match:
            return int(match.group(0))

    return 1