fixed mistake where update_count not updated properly
Merge pull request #33 from davecramer/master

fix bug where update_count not updated correctly