Returns the number of times an object occurs in a leftist tree
Counts the number of occurrences of a given object in a leftist tree. This function takes advantage of the heap-ordering property, and returns 0 if the root of the tree is larger than what we are searching for.