def find_count(substring, string):
    """finds the number of occurences of substring in string"""
    counter = 0
    index = string.find(substring)
    while index >= 0:
        counter += 1
        index = string.find(substring, index + 1)
    return counter