I have a list:
l = [['a', []], ['b', []], ['c', []], ['d', ['c']], ['e', ['d']], ['f', []], ['g', ['f', 'a', 'e']], ['h', ['g']]]
I want to count how many times an element doesn't appear in another list, for example in this list it would be b and h.
These are the only elements that appear only one time in all the list , so the function would return 2.
Another example:
l2 = [['a', []], ['b', []], ['c', ['b']], ['d', ['c', 'b', 'a']], ['f', ['d']], ['g', ['f', 'a']], ['h', ['f', 'c']], ['i', ['h', 'a']]]
Here we got 2 elements that appear only one time in all the lists: g and i
I want to use the python function count but I don't really know how to apply it in this case.