Sounds like you want the old C static method-local variables - a variable that is static within a method only.
Java doesn't have anything like this, so the only thing I know of to solve this is "upgrade" the variable to an instance (or class) variable. You initialize it with 0 when the object (or class) is initialized, then increment it when the method is called.