"TypeError: count() takes 0 positional arguments but 1 was given", what is wrong with the code : <p>I'm trying to find no. of even and odd numbers from the list.</p>

<pre><code>list = []


for i in range(5):
    lst = int(input("Enter the numbers: "))
    list.append(lst)
print(list)

even = 0
odd = 0
def count():
    for i in list:
        if list[i] % 2 == 0:
            even+=1
        else:
            odd+=1

    return even, odd
even,odd = count(list)
print('Even : {} and Odd : {}'.format(even,odd))
</code></pre>

<p>I'm getting an error:TypeError: count() takes 0 positional arguments but 1 was given. What does it mean?</p>
