cf.Field.count

Field.count()[source]

Count the non-masked elements of the data.

Returns
int

The number of non-masked elements.

Examples

>>> n = f.count()