# cf.FieldList.count¶

FieldList.count(value)[source]

Return number of occurrences of value.

Each construct in the list is compared with its equals method, rather than the == operator.

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

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