count_matrix.js: readability