Can you provide a Python code snippet to count the number of words in the given text?
Text: Today it is a beautiful day.
text = "Today it is a beautiful day."
words = text.split()
print("Number of words in the given text:", len(words))