import re


def count_aspects(mask: list):
    """Counts the number of keywords (runs) in a given aspect mask
    Example:
    - input: [1,1,0,0,1,0]
    - output: 2
    Arguments:
    - mask: list of booleans (returned by function create_aspectmask)
    Return:
    Positive integer
    """
    mask_str = "".join([str(x) for x in mask])
    return len(re.findall(r"^1|01", mask_str))