Add counts api
Add apidoc
Merge pull request #9 from bengler/counts

Add counts api