Added beforeCount() support
Added beforeCount to events()
Merge pull request #10 from a-t/master

Added beforeCount() support