I resolved this issue by adding a space between ServiceType in the RetrieveCounter() method.
RetrieveCounter()