Add feature to print number of colours. Fixed issue where extra comma and quote was at the end of array.