Python: Elements common (or not) to two lists:

diff_list = filter( lambda x: x not in listA, listB)

diff_count = len(diff_list)