cf.FieldAncillary.count

FieldAncillary.count(x)[source]
Emulate
f.count(x)

Equality is tested with the field ancillary’s cf.FieldAncillary.equals method (as opposed to the == operator).

Note that f.count(x) is equivalent to 1 if f.equals(x) else 0.