length-methods function

Returns the length of a palette (the number of entries).