<s>Human: 给一个文本数据集，要求使用Python编写程序，将其中的所有单词转为小写，并统计每个单词出现的次数。
文本数据集：\"It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way - in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.\"
</s><s>Assistant: text = "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way - in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only."

# 将所有单词转为小写
text = text.lower()

# 去除标点符号并分割成单词列表
text_list = text.replace(",", " ").replace(".", " ").replace("-", " ").split()

# 统计每个单词出现的次数
word_count = {}
for word in text_list:
    if word in word_count:
        word_count[word] += 1
    else:
        word_count[word] = 1

# 输出结果
for word, count in word_count.items():
    print(word, count)
</s>