Add documentation

This fixes #15 
You have to use bind here or wrap the count method in a function.