def row_counts(number_of_columns)
      per_column = (number_of_elements / number_of_columns).floor
      counts = [per_column] * number_of_columns

      left_overs = number_of_elements % number_of_columns
      left_overs.times { |n|
        counts[n] = counts[n] + 1
      }

      counts
    end
def row_counts(number_of_columns)
      per_column = (number_of_elements / number_of_columns).floor
      counts = [per_column] * number_of_columns

      left_overs = number_of_elements % number_of_columns
      left_overs.times { |n|
        counts[n] = counts[n] + 1
      }

      counts
    end
Returns an array with an element for each column containing the number of
 rows for that column