Move count of used colours into the list function