Data Formatting
General Info
Useful Snippets

9.0.15 count occurances of specific word

Example:

def count_word_occurance(text, word):
    "Returns the number of times a given word occurs in a string"
    text = str(text)
    word_count = text.count(word)
    return(word_count)