added the first support for counters