Update api.rst

Added doc on count feature
Merge pull request #56 from JocelynDelalande/patch-1

Update api.rst