Add an update function to the global occurrance count