Tweak how 'count' is handled in the nativeCodeGen