@classmethod
def get_counter(cls, name='index'):
    """
        Function that returns the prefix username and count for vm naming.
        If it is not present in db, it creates a new entry.
        :return:
        """
    count = cls.get(name=name)
    if count is None:
        count = 1
        cls.set_counter(name, count)
    return int(count)
