A PHP script that has you enter a list of colours (one per line) and then counts them, sorts them (losely for the moment), checks and removes duplicates, then formats them for use in an array.