Session a class-level counter: every construction increments Session.count. Add a classmethod active() returning the current count. The counter must live on the class so all instances share it.Session(); Session(); Session.active()
2
Two constructions bumped the shared counter.
Session.count += 1 mutates class state.
Initialize count = 0 in the class body.