Print a histogram of the colors present in a PPM image. See also: pgmhist. More information: https://netpbm.sourceforge.net/doc/ppmhist.html.
pgmhist
ppmhist -nomap path/to/image.ppm
ppmhist -map path/to/image.ppm
ppmhist -version