update to hashcount protocol emulator for custom function example