Add set_badge to set/reset badge count.