changes to make the COUNTERRATE machine interface to the io