changing counter type