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 heap_queue_largest(nums,n):
  import heapq as hq
  
  largest_nums = hq.nlargest(n, nums)
  return largest_nums