(a, b)
return count
Return the number of items in a which are, or which equal, b.
Return the number of items in a which are, or which equal, b.
Return the number of items in a which are or which equal b .
def countOf(a, b):
    "Return the number of items in a which are, or which equal, b."
    count = 0
    for i in a:
        if i is b or i == b:
            count += 1
    return count
def countOf ( a , b ) : count = 0 for i in a : if i is b or i == b : count += 1 return count