human
count occurnaces in a list.
assistant
Here is a Python program to count occurnaces in a list

import re

def count_occurnaces(list):
        """Return the number of occurnaces in the given list."""
        return len([i for i in list if i!= ''])

# Enter the list
list1 = ['lilly', 'cat','skateboard']

# Calling the function
print((count_occurnaces(list1)))

#Example Output

# 3

#Remember to inspect code for bugs.