add count functionality
documentation update
Merge pull request #6 from danielb2/master

Adds rudimentary count