added a general counter