count = {}
no_match = []
domains = ['examplecartrading.com', 'examplepensions.co.uk',
    'exampledeals.org', 'examplesummeroffers.com']
for domain in domains:
    name = domain.partition('.')[0].lower()
found = set()
for split in substrings_in_set(name, words):
    found |= set(split)
for word in found:
    count[word] = count.get(word, 0) + 1
if not found:
    no_match.append(name)
print(count)
print('No match found for:', no_match)
​Breaking a string into individual words(Python)