struct Counter { var count = 0 mutating func countUp() { count += 1 } mutating func reset() { count = 0 } }