# Text summarization with limited number of words

I am reviewing summarization techniques and haven't (yet) found an approach to limit the length of a summary. So for example a summarization function that gives me a summary that is < 500 words.

Can you point me in the right direction? Are there approaches/implementations out there that try to solve this challenge?