add counter object and test file

I had the counter object from the "Count Decorator" bonus homework from Foundations 2.