Add resync callback for counter synchronization.