parameters: (self, nums)
return_statement: return [count[i-1] for i in nums]
docstring: :type nums: List[int]
          :rtype: List[int]
docstring_summary: :type nums: List[int]
          :rtype: List[int]
docstring_tokens: : type nums : List [ int ] : rtype : List [ int ]
function: def smallerNumbersThanCurrent(self, nums):
          """
          :type nums: List[int]
          :rtype: List[int]
          """
          count = collections.Counter(nums)
          for i in xrange(max(nums)+1):
              count[i] += count[i-1]
          return [count[i-1] for i in nums]
function_tokens: def smallerNumbersThanCurrent ( self , nums ) : count = collections . Counter ( nums ) for i in xrange ( max ( nums ) + 1 ) : count [ i ] += count [ i - 1 ] return [ count [ i - 1 ] for i in nums ]