That is possible I suppose, but if it is a real concern, we need to sweep through all of rviz, as this static counter variable is a very common pattern when working with Ogre.  I see 25 instances of it with a casual grep.