class Cs
@@count = 0
def initialize()
@@count = @@count + 1
end
def Cs.getCount()
return @@count
end
end
i1 = Cs.new()
i2 = Cs.new()
i3 = Cs.new()
i4 = Cs.new()
p Cs.getCount()
Y2xhc3MgQ3MKICBAQGNvdW50ID0gMAogIGRlZiBpbml0aWFsaXplKCkKICAgIEBAY291bnQgPSBAQGNvdW50ICsgMQogIGVuZAogIGRlZiBDcy5nZXRDb3VudCgpCiAgICByZXR1cm4gQEBjb3VudAogIGVuZAplbmQKaTEgPSBDcy5uZXcoKQppMiA9IENzLm5ldygpCmkzID0gQ3MubmV3KCkKaTQgPSBDcy5uZXcoKQpwIENzLmdldENvdW50KCkK