got counter to work