champion counter proggram in ruby