d3.js and korvai matra counts