fix update_cached_method to work with counters