updating to use count.js instead of inline js