将给定的文本分成单词，并打印单词的数量和每个单词出现的次数。


text = "The quick brown fox jumps over the lazy dog. The dog slept over the verandah."
text = "The quick brown fox jumps over the lazy dog. The dog slept over the verandah."
words = text.split()
word_count = len(words)
word_frequency = {}

for word in words:
    if word in word_frequency:
        word_frequency[word] += 1
    else:
        word_frequency[word] = 1

print("Number of Words:", word_count)
print("Word Frequency:", word_frequency)