def word_occurrence(sentence: str) -> dict:
    occurrence: DefaultDict[str, int] = defaultdict(int)
    # Creating a dictionary containing count of each word
    for word in sentence.split():
        occurrence[word] += 1
    return occurrence