number of white pixels

Hi,

I have a binary image and I would like to know the number of white pixel in a blob.

What is a quickly method ?

Thank you
H1.jpg

blob.pixels()

There’s a pixels method for the blob object that returns the number.