The combination with replacement is found by counting the number of items that can be selected. This number is equal to the probability function multiplied by the sum of all possible selections.