supports function/$count calls