def countOf(a, b):
 count = 0
 for i in a:
  if (i == b):
   count += 1
 return count

def countOf ( a , b ) : count = 0 for i in a : if ( i == b ) : count += 1 return count
return the number of times b occurs in a .