def count_variable(a,b,c,d):
  from collections import Counter
  
  c = Counter(p=a, q=b, r=c, s=d)
  return list(c.elements())
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 