add count8.rb, not fully working