Fix counting on multi-promise resolution and add debugging info for inputs