counters implemented (first draft)