Static variable counter example