Oops, try again. Does your count function take exactly two arguments: a list and an item to check against that list? Your code threw a "an integer is required" error.
I know my code uses a different approach to the hint in this exercise, but I was wondering if someone could tell me why this doesn't work?
def count(sequence, item): new_seq = [sequence.pop(item)] times = len(sequence) - len(new_seq) return int(times)