Working out the percentage of black in a BW bitmap

Hi Guys.

Does anyone know how to work out the percentage or ratio of black that any given BW 1bit bitmap contains. 

I.E  If I have an image 300mm x 300mm 1bit BW Bitmap how do calculate the area of the black or white areas.

I hope this makes sense.

Regards

Nolan.