pixcolors — Count/list color values used in a PIX(5) format image
pixcolors reports on the standard output the number of distinct colors used in the pix(5) format file on the standard input.
-v
Causes a sorted list of the unique colors used to be printed on standard output in addition to the count report.