adding initial support for counters