Add `returnvalue` support to counter increment