updated count-density-by-position to use screed.open