title: Count how many pixels with a specific color in an image?
body: <p>I want to loop through a folder of images and output to console how many pixels are #333212, how many are #332211 etc. Is this possible in PHP? I found a <a href="http://image.intervention.io/" rel="nofollow">package</a> that <em>manipulates</em> images but not one that can detect colors of each pixel. Does such a tool or function exist in the PHP library?</p>
  
  <p>EDIT: Doesn't have to be in PHP, the less packages I have to install the better.</p>