Count Smaller Numbers - Read Statement

Given an integer array nums, return an array counts where counts[i] is the number of smaller elements to the right of nums[i].

Example: For [5,2,6,1], output is [2,1,1,0]. To the right of 55 there are 22 smaller elements (22 and 11). To the right of 22 there is 11 smaller (11).