Implement a limit for max results

This PR implement a new feature to enable limit the maximum of results to be shown