Add plain counter implementation