Occurrences
Given a [!scala]List[Int][/!][!java|python]recursive list[/!] and an integer, return
the amount of occurrences of the given integer in the list. If the integer is not a member
of the list, the function should thus return 0.
Your solution should be linear in time.