cres_in_range() added parameter to return only the top n ranked by highest counts