import re


def get_k(status):
    """
    Get number of color palette from tweet status

    Parameters
    ----------
    status: Tweet
        Tweet status that mentions img2palette
    
    Returns
    ------
    k: int
        Number of color palette
    
    """
    match = re.search(r"\b\d+\b", status["text"])
    if match:
        return int(match.group())
    else:
        return None