The version counter is only ever bumped when inplace operations happen. So that might not cover all the cases you want.
If you have an example or idea of what exactly you want to get for a given sample code, that might help us guide you more