def count_word_usage(tokens, word_list):
    '\n    Counts occurrences of a given list of words\n    :param tokens: a list of tokens for one sentence\n    :param word_list: a list of words to search for\n    :return: the number of times the words appear in the list\n    '
    return len([word for word in tokens if (word.lower() in word_list)])
Counts occurrences of a given list of words
:param tokens: a list of tokens for one sentence
:param word_list: a list of words to search for
:return: the number of times the words appear in the list
def count_word_usage(tokens, word_list):
    '\n    Counts occurrences of a given list of words\n    :param tokens: a list of tokens for one sentence\n    :param word_list: a list of words to search for\n    :return: the number of times the words appear in the list\n    '
    return len([word for word in tokens if (word.lower() in word_list)])