Find the number of elements of a list

Define a function count which returns the number of elements of a list.

>>> a_list = [0, 1, 2, 3, 4, 5, 6, 7]
>>> count(a_list)
8
>>> another_list = ['a', 'b', 'c', 'd', 'e', 'f']
>>> count(another_list)
6
Solution
List of all problems