added ability to select number of results wanted