define a function called count that has two arguments called sequence and item.
return the number of times the item occurs in the list.
def count(sequence,item):
found = 0
for i in sequence:
if i == item :
return found
語法for item in list,在這里不能用item,因為后面有一個,那就選擇其它的,如 i