def count_words(text):
    """
    Count the number of words in a given text.

    Args:
        text (str): The input text to be processed.

    Returns:
        int: The total number of words in the text.
    """
    return len(text.split())