Use the object attribute max_entries, and get rid of the argument.
Merge pull request #8 from clewis/respect-max-entries

Respect max_entries.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>