"total" is an attribute that belongs to the class. We can access it using Date.total. We can create a @classmethod to access it, but actually we can access it from the outside even without the class method, just using the "class object"

examples/classes/mydate3/mydate.py
from __future__ import print_function

class Date(object):
    total = 0

    def __init__(self, Year, Month, Day):
        self.year  = Year
        self.month = Month
        self.day   = Day
        Date.total += 1

    def __str__(self):
        return 'Date({}, {}, {})'.format(self.year, self.month, self.day)

    def set_date(self, y, m, d):
        self.year = y
        self.month = m
        self.day = d

    @classmethod
    def get_total(self):
        return Date.total

    @classmethod
    def from_str(class_object, date_str):
        '''Call as
           d = Date.from_str('2013-12-30')
        '''
        print(class_object)
        year, month, day = map(int, date_str.split('-'))
        return class_object(year, month, day)

examples/classes/mydate3/run.py
from __future__ import print_function
from mydate import Date

d = Date(2013, 11, 22)
print(d)

print('')
dd = Date.from_str('2013-10-20')
print(dd)

print('')
print(Date.get_total())
print(Date.total)

examples/classes/mydate3/run.out
Date(2013, 11, 22)

<class 'mydate.Date'>
Date(2013, 10, 20)

2
2