Pin JS with hardcoded example that counts function invocations