class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
l=[]
for i in range(len(nums)):
count=0
j=0
while j<len(nums):
if nums[i]>nums[j]:
count+=1
j+=1
l.append(count)
return l