def wordCount(cleantext):
    
    """
    This function counts words from a text and returns a dictionary. 
    Does not fix for punctuation and special characters, so for example 'why' and 'why?' will be counted as two different words. This doesn't matter in the case of youtube subtitles.
    
    INPUT: string
    OUTPUT: dictionary where keys are words, and the values are counts.
    """
    
    words = cleantext.split()
    
    #Counting words and saving count in dictionary
    count = {}
    for word in words:
        if word in count:
            count[word] += 1
        else:
            count[word] = 1
    
    return count