Update inv_counter.rb