Sum result of Threads.foreach()

I wasn’t totally sure how to do that.

Maybe like this?

mean_coherence = Channel{Float64}() do ch
    Threads.foreach(topic_word_pairs) do pair
        confirmation = calculate_confirmation(pair, model.corp)
        put!(ch, confirmation)
    end
end
    
for r in mean_coherence
    sum_coherence += r
    num_pairs += 1
end