adding counters support in rest api