def count(self, val):
        count = 0
        for i in self:
            if val == i: count += 1
        return count
Standard list count method
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/geos/mutable_list.py/ListMixin.count