some API changes

added the ability to set counts and sort options, and changed the API call from a post to a get