init counter