now add counter control