def value_counts
          values = @data.each_with_object(Hash.new(0)) do |d, memo|
            memo[d] += 1
          end

          Daru::Vector.new(values)
        end
Count number of occurrences of each value in the Vector