def check_mc(mc):
    """
    Returns proper status or error message based on modified count of MongoDB
    query.
    ---
    IN
    mc: result.modified_count (int)
    OUT
    status: message based on modified count (str)
    """

    if mc == 1:
        status = " * Sample modified in DB"
    elif mc == 0:
        status = " * ERROR: No samples modified in DB"
    else:
        status = " * ERROR: Modified count of {}".format(mc)

    return status