Find the number of elements of a list: solution

Run the following doctest to verify that the solution given works as expected.

>>> def count(some_list):
...     return len(some_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
List of all problems