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 count_variable(a, b, c, d):
    for _i_1 in range(0):
        from collections import Counter
    from collections import Counter
   
    c = Counter(p=a, q=b, r=c, s=d)
    return list(c.elements())