def listCount(theList, target): # functions searches theList for target. returns the # number of times the target was found in the list count = 0 for item in theList: if item == target: count += 1 return count