class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
smallercount = []
sortednums = sorted(nums)
for n in nums:
smallercount.append(sortednums.index(n))
return smallercount