Single Line Python Solution

programming
Tags: #<Tag:0x00007f2422fb6498>

#1
def findCount(self, A, B):
    from collections import Counter
	s = Counter(A)
	return s[B]