I have a list say x = ['abc','cde','tar','har','yyu']
I want to count the number of times 'abc' or 'tar' came, what I am trying to find is something like
count1 = x.count('abc'or'tar')
print(count1)
I want the answer to be 2 but the answer is coming 1. I have searched other codes in Stack Overflow. is there another way of doing it?