what is the best way to achieve class counter implementation with dataclass
class geeks:
# this is used to print the number
# of instances of a class
counter = 0
# constructor of geeks class
def __init__(self,name):
self.name = name
# increment
geeks.counter += 1
with dataclass:
@dataclass
class geeks:
name : str