Added counters
Refactored Counters into a separate class
Merge pull request #2 from google/counters

Added counters