dualMatch & dualCount are available in tools.js