struct FrameCounter(Copyable): var count: Int def __init__(out self, count: Int): self.count = count def increment(self): self.count += 1 def get(self) -> Int: return self.count def main(): var counter = FrameCounter(0) counter.increment() counter.increment() print("Frames handled:", counter.get())