Fixed resume/pause event handling to restore count