Batch 1752

Adding synchronized and unsychronized stateful counters as possible fixes for jira 1752.