using hosted version
added shortcircuit on total count