Fixed issue #7 - added a function to set the update count.