Result should be 2, not 1. Use a static field to avoid this kind of error (though it might be slightly slower, depending on the compiler/toolchain).
Result should be 2, not 1. Use a static field to avoid this kind of error (though it might be slightly slower, depending on the compiler/toolchain).