Given a possibly nested sequence and an item, count the occurrences of the item in the sequence.

For instance given,

[1, [2, 3], 4, [5, [6, 4]]]

you should be able to count 2 occurrences of 4.

Updated: