Update and rename counts.js to metrics.js