Persist with callbacks

we changed the functionality a bit, now instead of passing the gem a boolean value we pass a method and run it after the counter was updated