change base.rb to return the amount of values in the array