Answer:
Here is one possible implementation of the count() function:
def count(lst, value):
count = 0
for elem in lst:
if elem == value:
count += 1
return count
Here is an example of how you could use this function:
myList = [1, 2, 3, 4, 1, 2, 3, 4, 1, 2]
numOnes = count(myList, 1)
print(numOnes) # outputs 3