A simple Singleton class example that holds a static counter