[#009][Liu Lin] - refactor count.js