Refactor counter property to static field