create 6 threads
count[1..42] = 0 /* initiate the count array */
loop
get six numbers, n[1..6], from threads
for i=1 to 6 do count[n[i]]++ /* increase count */
end loop
print the histogram