This looks fine to me, but when i try to run it, it says "Oops, try again. Did you create a function called count? Your code threw a "global name 'count' is not defined" error."
I'm pretty sure i did create a function called count.
def count(sequence,item): tally = 0 for x in sequence: if x = item: tally += 1 else: tally += 0 return tally;