Traffic flow meter written in Ruby