There is custom field "color" in posts with set of hex color codes (all in one custom field, separated with one space). Examples of custom field values for 5 posts:
"000000 f0f0f0 c0c0c0 202020 404040 "
"0000ee 555333 cc0000 602040 003399 "
"9999cc 0000cc 0099ff 204010 552299 "
"406040 ffffff ffcccc 000000 202020 "
"cc0000 99ffcc cc9900 ff9999 000000 "
Posts 1, 4 and 5 have same color "000000" posts 1 and 4 have same color "202020", and posts 2 and 5 have same color "cc0000".
In my example most used single colors would be: "000000", "202020" and "cc0000".
How to show most used single colors (not whole set of colors), for example 20 most used single colors?