Particular Subset Size

A Greedy-based solution to find out "What is the maximum number of set elements that the sum does not exceed a certain given number?"