w = 0 r = 0 b = 0 puts puts "Can say w, r, b, t or c." puts while true print "# " ipt = gets.chomp puts "You said #{ipt}" w = w+1 if ipt == 'w' r = r+1 if ipt == 'r' b = b+1 if ipt == 'b' print w,',',r,',',b if ipt == 't' break if ipt == 'c' end