def count_till_tuple(a):
    """Counts the elements until a tuple is in the list and returns the number"""
    counter = 0
    for item in a:
        if type(item) == tuple:
            break
        else: 
            counter += 1
    return counter