def calculate_length_of_source(histogram):
    """Return the total count of words in the source text.
       Param: histogram(dict)
       Return: int
    """
    sum = 0
    for word in list(histogram):
        sum += histogram[word]
    return sum