fix for #49

Result counter fixed.