use Object.keys(target).length instead of __count__.