Python One liner in O(N)


#1

class Solution:
# @param A : tuple of integers
# @param B : integer
# @return an integer
def findCount(self, A, B):
return A.count(B)