Develop an algorithm in Python to find the number of words in a given text string.
"Hello world, this is a test."
def get_word_count(text):
    words = text.split()
    return len(words)

word_count = get_word_count("Hello world, this is a test.")
print(word_count)