fix count.js and let already have stocks default 0