Add missing code about farm_counter.