from typing import Dict


def word_count_helper(results: Dict) -> int:

    """
    Helper Function that computes
    word count for ocr results on a single image

    Parameters
    ----------
    results: Dict
        (OCR results from a clapperboard instance)

    Returns
    -------
    Int
        Number of words computed from
        OCR results
    """

    count = 0
    for element in results:
        words_list = element["text"].split(" ")
        count += len(words_list)
    return count