[counters] Add sample and accessors functions