#!/usr/bin/python3

class Base:
    __nb_objects = 0
    def __init__(self, id=None):
        if id is not None:
            self.id = id
        else:
            __class__nb_objects+=1
            self.id = __class__nb_objects
