Added decorator.py to confirm behavior of decorators.
Updated Counter class to use a decorator to perform locking for thread-safe methods.