develop ActiveRecord::Base object counter