I'd probably keep it on at the gym 'coz its still part of it, unless your goal is 10k AND an hour at the gym in which case take it off.
The step counters only tend to record your step if it shakes so much, so if you don't wiggle your hips much (sounds daft!) might not record each step.