Modify _last_update_count to fix update_frequency option

_last_update_count was never updated, so update_frequency option worked only once.