def get_dogs_by_breed(all_dogs, breeds):
    """returns dog index numbers that have the breeds in primary or secondary breed columns.
    
    Args:
        all_dogs: a dataframe with all the dogs' info
        breeds: a list of breeds that count
        
    Returns: a list of dog #s (the index column) that match the breeds in primary or secondary.
    """
    result = all_dogs.loc[(all_dogs['Primary Breed'].isin(breeds) 
             | all_dogs['Secondary Breed'].isin(breeds))]
    result = [str(x) for x in list(result['index'])]
    return result