Write offsets to datasets only on changes
Moved the count right before its usage
Merge pull request #10 from caskdata/feature/write-offsets-on-changes

Write offsets to datasets only if message is processed