For a start, you can get the length of the corresponding list of combinations:
say combinations(5, 3).elems;
Output:
10
This method is efficient, as Raku will not actually compute each element of the list, since it actually uses an iterator with a defined count-only method. Such method performs computations in a way similar to the following infix operator: