# cf.FieldList.count¶

FieldList.count(value)[source]

Return number of occurrences of value

Each field in the field list is compared with the field’s equals method, as opposed to the == operator.

Note that fl.count(value) is equivalent to sum(f.equals(value) for f in fl).

cf.Field.equals, list.count
>>> f = cf.FieldList([a, b, c, a])