title: How to count the number of pixels of a certain color in python?
body: <p>I have a picture of two colours, black and red, and I need to be able to count how many pixels in the picture are red and how many are black.</p>