For example my list is
lst=['hello','world','this','is','hello','world','world','hello']
subString=['hello','world']
The result I'm looking for is in this case is 2 since the list ['hello','world'] occurs twice with that same order.
I tried doing
list(filter(lambda x : x in substring,lst))
but that returns all of hello and world